It works! Thanks a lot :-)


On 10/5/06, Sam Collett <[EMAIL PROTECTED]> wrote:
On 05/10/06, Harlley Roberto <[EMAIL PROTECTED]> 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]

You can get the selected value like this:
test = $("#ddlCourse").val()

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Att.

Harlley R. Oliveira
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to