我需要从具有相同类和不同值的复选框中获取值,以便在激活提交底部并选中不同复选框时获得这些值
<script>
jQuery(.simple_search).click(function(){
if (jQuery('.skey_send').is(":checked")){
var s_key=jQuery(".skey_send").val();
alert("Value is : "+s_key);
}
});
</script>
<input t
我的MVC应用程序中有一个列表视图,在每个条目旁边都会显示一个复选框:
<% For Each item In Model%>
<%=Html.CheckBox("Selected", item.select_flag, New With {.onclick = "this.form.submit();"})%>
<%=Html.Hidden("ID", item.id)%>
<%=item.name%>
<br/>
<% Next%>
从on