Hey all I'm stumped on rewriting a function from jQuery to Javascript. The function I currently have written works great but the only issue is, is that it has to be written in plain Javascript. Here is the function I have written:
function checkFunc() {
if ($('input[type="radio"]:checked').length === 0) alert("Not checked");
else alert("Checked");
}
I need the function to work the same way it does now but I just need it in Javascript! Any help is appreciated. Thanks!