Checking if a checkbox is checked or not with jQuery is extremely useful. You can show an additional form field, enable or disable a submit button, or show a message. It’s a pretty common thing to do. So let’s see how to determine the state of a checkbox, using jQuery.
Some kind of jQuery validation should be implemented on any Rails form. It’s not always straightforward, but your users need it. There is nothing worse than to fill in many fields, submit the form, waiting for the page to load and then be told that what you did was not right.
Think of your own interactions. How better is it when the form tells you what’s wrong right away?