我想提醒选择选项框的"值"属性的值
<select class="form-control" id="selet-city" required >
<option selected disabled>Please select a City</option>
<option vlaue="dsfsdfsd">bangalore</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
</select>
我试过这个:-
alert($('#selet-city option:selected').attr('value'));
alert($("#selet-city option:selected").val())
你可以检查一下
$("#selet-city").change( function(){alert($("#selet-city option:selected").val());})
检查一下
<select class="form-control" id="selet-city" required >
<option selected disabled>Please select a City</option>
<option vlaue="dsfsdfsd">bangalore</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
$("#selet-city").change( function(){alert($("#selet-city option:selected").val());})
https://jsfiddle.net/badarrashdi/jkass3hw/