Skip to content

Instantly share code, notes, and snippets.

@geetfun
Created October 23, 2009 04:28
Show Gist options
  • Save geetfun/216645 to your computer and use it in GitHub Desktop.
Save geetfun/216645 to your computer and use it in GitHub Desktop.
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