Using jQuery, how do I apply "selected" to option value C?
<select id="letters">
    <option value="A">A<option>
    <option value="B">B<option>
    <option value="C">C<option>
    <option value="D">D<option>
</select>
Using jQuery, how do I apply "selected" to option value C?
<select id="letters">
    <option value="A">A<option>
    <option value="B">B<option>
    <option value="C">C<option>
    <option value="D">D<option>
</select>
 
    
    As of jQuery 1.9, jQuery has updated changed this functionality.
The "selected" state of an option is actually a property, therefore jQuery has changed this to use the .prop() method. 
$('#letters option[value=C]').prop('selected', true);
 
    
     
    
    you need to do something like this
$('#yourdropddownid').val('C');
or do something like this
 $('#yourdropddownid').value = 'C';
For more information please view this post
 
    
    $(function(){
 $('#letters').val('C');
});<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select id="letters">
    <option value="A">A<option>
    <option value="B">B<option>
    <option value="C">C<option>
    <option value="D">D<option>
</select>Find the object and set the selected value :
$('#letters').val('C');
Check the working fiddle here: https://jsfiddle.net/yvow5030/
