我有一个div元素内的复选框。我想选中复选框作为托运whenevever我按一下按钮.. DIV元素标签如下jquery选择div元素内的复选框
<div class ="test123" style ="width:90px;">
<input id = "chk1" type = "checkbox" value="on"/>
</div>
我做这样的事情,但它不是为我工作
$(".test123 ").find("input:checked").each(function() {
//code to check the checkbox
});
请建议..
导航。
但这意味着,我需要点击div,对不对?我想要的是,点击按钮,并在格子里面的复选框.. – Gagan