I have this HTML markup:
<input type="text" name="name1" class="stat" value="">
<input type="checkbox" name="name1" value="">
<input type="text" name="name2" class="stat" value="">
<input type="checkbox" name="name2" value="">
<input type="text" name="namei" class="stat" value="">
<input type="checkbox" name="namei" value="">
where i = 1,2,3, ... n
Q: How to select checkbox with name2 ?
Is this correct way ?
$('input[name="name2"]').find('input[type="checkbox"]').attr("disabled");