JQuery Validate Single Input on Toggle

In order to validate a single input, use the following function;


Be sure to add this inside your change.() event, otherwise it won't work.

$(function() {
  $('#toggleButton').change(function() {
    if ($(this).prop('checked') == true) {
Git Rename Branch Local and Remote Securely
Bootstrap Toggle Adding Dynamic Elements


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
May 28, 2020

Captcha Image

Latest Comments

Guest - Susan Hermiston Virtual Hosts
October 7, 2015
Wow 747 just blew me away. Sorry not a tech person at all!! But I still love you!! Rock on!!?
Guest - Johmny Invisible Mouse Cursor Ubuntu & Synergy
September 2, 2015
Glad I was ble to help!
Guest - Kristian Falk Invisible Mouse Cursor Ubuntu & Synergy
September 1, 2015
Thank you for this! Had the exact same problem. I almost went crazy.