Created
June 27, 2014 10:19
-
-
Save MiguelQueiroz/2cbe2e66252bca5607a8 to your computer and use it in GitHub Desktop.
Toogle Attribute switcher for Jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toggleAttr(what,attr,on_v,off_v){ | |
what.attr(attr)==on_v?what.attr(attr,off_v):what.attr(attr,on_v); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment