<select name="" id="selectUserCity"> <option value="1">按人员分组</option> <option value="2">按市县分组</option> </select>
<script> $(function () { $("#selectUserCity").on("change",function() { if ($("option:selected",this).val() ==1) { console.log(1) }else if ($("option:selected",this).val() ==2) { console.log(2) } }) }) </script>