if ddlCourse is the select box, you can simplify your code to this, but I'm not sure why it isn't working:
$(function() { $('#ddlCourse").change( function() { $('#class').load( 'filter_report.asp', { ajax: 1, cod_course: this.value } ); }); }); Have you tried doing an alert(this.value) to see if it's a problem with the select box value retrieval or a problem with the ajax loader? -Stephen Harlley Roberto wrote: > Hi folks, > > How can I get selected value in dropdownlist? > > That code does not work. Why ? > > $(document).ready(function() > { > var test; > test = document.getElementById("ddlCourse").value; > $("#ddlCourse").change( function() { > $('#class').load('filter_report.asp', {ajax:'1', cod_course: test }); } ); > }); > > > thanks, > > Harlley > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > ------------------------------------------------------------------------ > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/