I call the javascript function inside the onclick inline as follows:
<a href="#" onclick="removeAttribute('foo', 'bar');">Some Link</a>
When I click on the link, nothing happens. I have other links (to other functions) tied to onclicks that work fine elsewhere on the same page. All references to this removeAttribute function do not work.
There are no errors in Firebug, and the onclick event handler is called - but for some reason, the transition to the removeAttribute function ends somewhere in jQuery.js. In no case removeAttribute is called.
If I do this:
javascript:removeAttribute('foo', 'bar');
in the address bar of Firefox. The function is called successfully.
Has anyone seen this?
source
share