show previously selected option in select element html code example
Example 1: html select option selected true
<option selected='selected' />
Example 2: option selected aotu value
$(document).ready(
function(){
var theValue = $('#myId').val();
$('option[value=' + theValue + ']')
.attr('selected',true);
});