dropdown selected function in jquery code example
Example 1: jquery dropdown select
$('select>option:eq(3)').prop('selected', true);
Example 2: jquery dropdown select
$("#element-id").val('the value of the option');
$('select>option:eq(3)').prop('selected', true);
$("#element-id").val('the value of the option');