HTML代码如下:
<div class="col-sm-9 col-xs-12">
<select id="groupid" class="form-control" style="float: left" name="groupid">
<option value="">请选择</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<div class="help-block"></div>
</div>
Jquery代码如下:
<script type="text/javascript">
$(function() {
$("#groupid").change(function(){
alert($(this).val());
});
});
</script>