Share & let Share

Home

jQuery removeAttr for onclick and IE9

- Debjit Biswas

Did you know that the removeAttr method cannot remove the 'onclick' attribute on IE9 browser? Seems strange right, unfortunately it's true. jQuery is not at fault here though, IE9 has a bug it seems. So for now use the .prop('onclick', null) method to get the job done.

For more information hit this link: http://bugs.jquery.com/ticket/9405

0 Comment(s)

Subscribe by email Post a comment

Post Your Comment

Comments are closed.