Thursday, March 22, 2012

selecting drop down index with JQUery

Use the .attr('selectedIndex') property. For example

$("#testselect").attr('selectedIndex', 1);