HTML代码:
<form action='__CONTROLLER__/index' method="get" id="myform">
<select onchange="submitForm();" name="appname"
<option value="a">aaaaaa</option>
<option value="b">bbbbbb</option>
</select>
</form>
JS代码:
//表单提交
function submitForm(){
var form = document.getElementById("myform");
form.submit();
}
至此以上代码即可实现无需submit按钮即可提交选中的数据;