jQuery Style Sheet Switcher

I want to create a JavaScript alternate style sheet switcher using jQuery. There are tons of examples and tutorials on the web. In fact, there are so many, it’s confusing. I haven’t yet found an example that works for me.

If someone has a working example, could you post an example of your code, including the links and/or form buttons a visitor would click to switch style sheets?

I upgraded to jQuery 2 just now.


Why do you want to use a library for something as simple as this? (Just asking. :slight_smile: ) Here’s a nice SitePoint tutorial on how to do it, published only a few weeks ago:

Ah, that’s even better. Thanks!