<input type="radio" name="a" />
<input type="radio" name="a" />
<input type="radio" name="b" />
<input type="radio" name="b" />
I want to make sure that the both group of radiobutton must be checked, for this i tried :
if($("input[type=radio,name=a]:checked").length > 0 &&
$("input[type=radio,name=b]:checked").length > 0)
{
/* do something */
}
But not working , can anybody tell me why?
1 Answer