<script src="gentelella-master/vendors/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap-multiselect.js"></script>
<link rel="stylesheet" href="css/bootstrap-multiselect.css" type="text/css">
引入bootstrap-multiselect.js以及multiselect.css
注意jquery的版本问题
<small style="padding: 10px; float: left; font-size: 25px;">Sum:
<select id="sum" name="sum" multiple="multiple">
<option value="lon" selected="selected">lon</option>
<option value="lat">lat</option>
<option value="car_status">car_status</option>
<option value="speed">speed</option>
<option value="zcode">zcode</option>
<option value="timestamp">timestamp</option>
</select>
</small>
再在后台servlet通过request.getParamterValues(‘name’)获取到数据
网友评论