I have different groups of radiobuttons and all of the radiobuttons witch is paired have the same id so that they should work togheter and they do in certain ways. But when I want to validate I use this method:
if ($("PhysicallyActive").is(":not(':checked')")) {
$("PhysicallyActiveradio").css("border", "2px solid red");
}
else {
$("PhysicallyActiveradio").css("border", "");
}
With this method it only checks if the first radiobutton of the two or three radiobuttons is checked. So if the secound radiobutton is checked it I want it to go to else and reset the border. But as it is now I will set a red border if the second radiobutton is checked. I want it to check if any of the radiobuttons is checked that have the same id. How can I do that?