Hi,

 

Im having some problems getting the value of selectedIndex of a select box.

 

im using...

 

 

// this is populated dynamic using ajax

<select id="list" name="list" size="15"></select>

 

$(function() {

 

$('#list').bind('click', function() {

            alert( $(this).selectedIndex );

});

 

 

})

 

 

But always gives me undefined :|

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

Reply via email to