Here is my html code
<div id="mnc"> hello
</div>
<div id="slpt">
<select id="slt">
<option value="0">Option1</option>
<option>Option2</option>
<option>Option3</option>
<option>Option4</option>
<option>Option5</option>
</select>
</div>
Here is my jquery code
$(document).ready(function(){
$('#mnc').bind({
mouseenter: function(e) {
$('#slt').attr('selected', 'Option1');
}
});
});
here is a working model on jsfiddle
The Issue: after i click on drop down list but do not select an element i hover on hello text in above div.I wanted the drop down list to be set to a default Option1 on mouse hover.But its not working.Can any one throw some light on whats goin wrong.
EDIT:
Below is the condition when i hover on the hello text.I haven’t selected Option4

Ok so here is working model of my question
Here is the html code
Here is the Jquery code
here it is in jsfiddle