Created
October 23, 2009 04:28
-
-
Save geetfun/216645 to your computer and use it in GitHub Desktop.
This file contains 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
var Attribute = { | |
replace_id: function(selector, attribute, oldVal, newVal) { | |
var oldValue = selector.attr(attribute); | |
var newValue = oldValue.replace(oldVal, newVal); | |
selector.attr(attribute, newValue) | |
return selector; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment