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
April 12, 2021

Captcha Image

By accepting you will be accessing a service provided by a third-party external to https://www.johnnyshongo.com/