로 입력을 제출하는 방법은 다음과 같은 HTML이 :배열 jQuery를
<div id="tagType1">
<input id="tag1" name="tagType1" value="tag1" type="checkbox" />
<input id="tag2" name="tagType1" value="tag2" type="checkbox" />
<input id="tag3" name="tagType1" value="tag3" type="checkbox" />
<input id="tag4" name="tagType1" value="tag4" type="checkbox" />
</div>
<div id="tagType2">
<input id="tag5" name="tagType2" value="tag5" type="checkbox" />
<input id="tag6" name="tagType2" value="tag6" type="checkbox" />
<input id="tag7" name="tagType2" value="tag7" type="checkbox" />
<input id="tag8" name="tagType2" value="tag8" type="checkbox" />
</div>
그리고 다음 jQuery를 :
$.get($("#filter form").attr("action") + "/count", function (data, textStatus, jqXHR) {
$('#workCount span').text(data.toString());
});
다음과 같은 방법
public JsonResult Count(string[] tagType1 = null, string[] tagType2 = null)
{
// Do something
}
내 질문을 jQuery 내에서 두 컨테이너의 입력을 그룹화하는 방법은 무엇입니까?