Skip to main content

By value, what worked for me with jQuery 1.7jQuery 1.7 was the below code, try this:

$('#id option[value=theOptionValue]').prop('selected', 'selected').change();

$('#id option[value=theOptionValue]').prop('selected', 'selected').change(); 

By value, what worked for me with jQuery 1.7 was this:

$('#id option[value=theOptionValue]').prop('selected', 'selected').change();

By value, what worked for me with jQuery 1.7 was the below code, try this:

$('#id option[value=theOptionValue]').prop('selected', 'selected').change(); 
Source Link
mirapole
  • 1k
  • 7
  • 17

By value, what worked for me with jQuery 1.7 was this:

$('#id option[value=theOptionValue]').prop('selected', 'selected').change();