Doing $(\"#someId\").val(\"newValue\") doesn\'t change the DOM -- I can retrieve this value with $(\"#someId\").val(), but the element in the DOM s
$(\"#someId\").val(\"newValue\")
$(\"#someId\").val()
Reading from "rsp" answer and discussion:
you want to change the HTML source, not the DOM.
Therefore use:
$('#YOUR_ID option[value="YOUR_VALUE"]').attr('selected', 'selected');
The method .val() does not change the HTML source.
Cheers. Stefano