Figer's Technology Consulting | jQuery dynamically set html select dropdownlist item

jQuery dynamically set html select dropdownlist item

This was not obvious at all to me, but you have to invoke the select elements .Change() event to see the selected item actually reflected on the page, seems foolish, but the code is simple:


$("#SelectItem").val("SetThisValue");

$('#SelectItem').change();

Comments (1) -

Nice information, thank you for sharing

Comments are closed