JQuery toggle button issue

Hi Experts,
               The code that is attached is a settings screen where we want to toggle other buttons based on the main app sync button i.e if the "App Sync" is off then all the other buttons should toggle to off state,,,When "App Sync" is on then we should load the state of individual toggle buttons from the local storage.

we have picked the code for below link


The code is attached for your reference.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
So what does it not do or do incorrectly?
AmitShrivastvaAuthor Commented:
The buttons are not toggling as per the above mentioned behaviour.

if we switch off the "App Sync" we are not able to switch off other buttons automatically
Michel PlungjanIT ExpertCommented:
1) You load jQuery twice and one is very old (1.7.1 is current)
2) You did not provide a css
3) You do not have a class="toggle"
4) What are the links for you insert after the checkboxes?

Here is a fiddle we can work on


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.