jQuery: Let’s Check if a Checkbox is Checked or Not

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.

Read more

How to Add jQuery Validation in your Rails 5 Forms Without a Gem

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?

Read more

Rails 5: How to remove Turbolinks 5

Hello World. Want to disable Turbolinks? While it does great things, not all Rails apps need it. Do you have weird bugs with bugs with Javascript? It might be because of it. So, here is how to remove Turbolinks.  Read more