I want to set selected value of a select input to another selects option value. when i select a value from first select box, then i want to put that value in to another select box value. but i cant get this value in another select box. i have tried this
html
<body>
<select>
<option id="output"></option>
</select>
<select id="sel">
<option>--select--</option>
<option>amr</option>
<option>tomar</option>
</select>
</body>
jquery
$(document).ready(function(){
$( "#sel" ).change(function() {
var ww = $( "#sel" ).val();
alert(ww);
$( "#output" ).val(ww);
});
});