ASP.NET MVC Interface Controls - Dropdown List - Client-Side Manipulation


alert(ddl1.value());

ddl1.value('USA');

alert(ddl1.selectedIndex());

ddl1.selectedIndex(5);

alert(ddl1.options[6].value);

alert(ddl1.options[7].text);

ddl1.options.add('Some Country', '230', 2);

ddl1.options.remove(2);

ddl1.options.clear();

ddl1.enable();

ddl1.disable();

ddl1.open();

ddl1.close();

ddl1.onchange = onChange;

ddl1.onchange = null;



The Dropdown List control exposes many client-side methods that allow you manipulate the control on the client-side.