affiliate_link

Monday, May 28, 2012

How to set dropdown value using jquery?

If you know the value you can set it like this 
 
$("#myddl").val("somevalue");
 
Setting through index
 
$("#mydropdownlist").attr('selectedIndex', 0);
 

No comments: