How can I use jQuery to remove a click event on an Anchor generated by GWT? For example, I have some GWT code like this:
Anchor a = new Anchor("name")
a.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
//do something
}
});
So it generates HTML code like this:
<a tabindex="0" class="gwt-Anchor" href="javascript:">name</a>
In non-IE, I can use this:
$('a.gwt-Anchor').attr("onclick",function() {return false;});
to disable the click event, but this does not work for IE. And I am trying to use unbind() method, it does not work either. Is there a way to do this? Thanks.