I have a combobox that I disable when user clicks on checkbox with this:
$(this).parent().next('td').children('.xyz').attr("disabled", true);
I would also like to reset the same combobox to display the first value on the list, using this:
$(this).parent().next('td').children('.xyz option:first-child').attr("selected", "selected");
Unfortunately, this does not seem to work, what am I doing wrong?
Selection with JavaScript is a bit different. It’ll be easier to use this plugin, from this discussion:
and