I've got option select. How to set as var selected select automaticly?
<option>
<select>1</select>
<select>2</select>
</option>
E.g. I manually select option 1, and it automaticly is
<select selected="selected">1</select>
EDIT I found out.
<select id="sel">
<option value="1">aa</option>
<option value="2">bb</option>
<option value="3">cc</option>
</select>
$("#sel").change(function(){
alert($(this).val())
});