Skip to content

Simple jQuery plugin to swap stylesheets with a focus on browser compatibility.

License

Notifications You must be signed in to change notification settings

btleffler/jQuery-SwapStyle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.SwapStyle

Simple jQuery plugin that swaps out stylesheets.

Compatibility

  • Tested in IE 8
  • Chrome
  • Safari for Windows
  • Opera
  • Firefox

Requirements

  • jQuery (obviously)
  • Two or more stylesheets that you would like to swap out

Usage

Using the plugin is very simple.

$.swapstyle( urlOfOriginal, urlOfReplacment );

A simple example would be:

$.swapstyle( "styles/one.css", "styles/two.css" );

About

Simple jQuery plugin to swap stylesheets with a focus on browser compatibility.

Resources

License

Stars

Watchers

Forks

Packages

No packages published