I have two selects:
Fruit Animal<
I have found the solution as followiing... working for me perfectly :)
$(document).ready(function(){ $("#selectbox1").change(function() { var id = $(this).val(); $("#selectbox2").val(id); }); });