Bootstrap Toggle Adding Dynamic Elements

If you are adding elements to your page dynamically you will may run into issues with Bootstrap Toggle.

I was adding toggles, each with uniquie ids.

Hopefully this will help;

  // destroy all toggles beginning with 'my-toggle'
  // re-initialise the toggles
    on: 'No',
    off: 'Yes',
    onstyle: 'danger'
JQuery Validate Single Input on Toggle
JQuery Validate Multiple Dynamic Inputs


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