.removeAttr(attributeName) not working in Safari/Chrome/Webkit

Posted on January 12th, 2010 by Rich

So today I've found an issue whereby jQuery(selector).removeAttr(attributeName) wasn't working in Safari and Chrome. A very quick fix for this is to change the line to:

jQuery(selector).attr(attributeName, '')

Not brillient, but it works

comments powered by Disqus