When I did an internet search for switch on and switch off logic for my jQuery dependent plugin, I can’t find any suitable ready made source code to use so I decided creating a simple Switch On and Switch Off in jQuery. You can take a look a demo below.
and also you can directly visit it at http://jsfiddle.net/esstat17/8VLxU/. I hope this is beneficial to your current project.
Enjoy!