I am building a Firefox extension using jQuery.
I am able to successfully add an onclick event and unbind the event.
The problem is if I unbind the event I can't rebind another event to the element.
I tried the code out in a webpage with no problems, but when I try it in the chrome of the browser as an extension it does not rebind.
here is the code
this works no problems
$jQ('input[type="text"]', doc).click(function(){});
$jQ('input[type="text"]', doc).unbind("click");
this does not add the click event on the elements after unbind
$jQ('input[type="text"]', doc).click(function(){});
$jQ('input[type="text"]', doc).unbind("click");
$jQ('input[type="text"]', doc).click(function(){});
Any thoughts?