<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script><div class="tables"><select name="one" id="one"> <option value = 1>test</option> <option value = 2>test1</option></select><select name="two" id="two"> <option value = 1>haha1</option> <option value = 2>haha1</option></select><button onclick="save()">保存</button></div><script type="text/javascript"> function save(){ $(".tables select option:selected").each(function(){ var signSelect = this.name+"="+this.value; alert(signSelect); }); }</script>
<option value = 1>test</option>