In the below example I wish to select all the “:checked” radio buttons of the “radios” list. How to?
var radios = someDiv.find("input[type=radio]");
if (radios.length > 0)
{
// I wish to find all the checked radio buttons in the
// "radios" list - this doesn't work:
var checkedRadios = radios.find(":checked");
if (checkedRadios.length == 0)
alert("You have to select an option stoopid");
}
To make your code work as it is, you just need to replace
findbyfilterUnless you have any specific reason to make a 2 step selection, I’d recommend you to get selected radio buttons with one selector