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

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

Tags: Coding  |  jQuery

Comments

 

There are no comments on this page. Be the first to make one!