SO - 30116700
by Arun P Johny
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/redmond/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.js"></script>
<select class="select" id="one">
<option value="1">A</option>
<option value="2">B</option>
</select>
<select class="select2">
<option value="1">A</option>
<option value="2">B</option>
</select>
JavaScript
$(".select").selectmenu();
$(".select2").selectmenu({
change: function (event, data) {
var firstVal = $("#one").val();
console.log('first', firstVal);
console.log('second', $(this).val())
return false;
}
});