Validating radio buttons with javascript

I know that personally, there are many times I've tried to click on something in a form, and my fingers are just too fat and I can't get it just right.And if you have to click only on the box, that can be a real problem turning it on and off.'s instead of radio button which I'm able to validate fine, but the reason I can't use that in this instance is that the user is viewing the page in a language where the equivalent of 'Yes' or 'No' is different depending on how you structure the question, so I'm using ticks and crosses. Edit: What I've tried to do is use the .children() function to check if one is checked and if not set a flag that says the form is invalid.But I cannot get the syntax right, and haven't been able to find a good code sample for this yet.

validating radio buttons with javascript-23

This course will introduce you to the basics of the Java Script language.

We will cover concepts such as variables, looping, functions, and even a little bit about debugging tools.

You will understand how the Document Object Model (DOM) is used by Java Script to identify and modify specific parts of your page.

What I need to do is ensure that one answer is selected for each question.

I don't have a lot of experience of j Query so all I've done so far is loop around each question.

Leave a Reply