I want to unbind the function(which is with parameters
<%#Eval(”)%>) and after thta on button click bind that function in jquery or javascript
<ItemTemplate>
<tr>
<td nowrap="nowrap" align="center">
<%#Eval("Comments")%>
</td>
<td nowrap="nowrap" align="center">
<a id="hlnkEditVoyageAssosiatedCompanyID" onclick="FillVoyageCompanyData(<%#Eval("VoyageAssosiatedCompanyID") %>);"> Edit</a>
</td>
</tr>
</ItemTemplate>
Here i want to unbind “FillVoyageCompanyData” function.
i am doind it by
$("#hlnkEditVoyageAssosiatedCompanyID").unbind("click");
and then
$("#hlnkEditVoyageAssosiatedCompanyID").bind("click", FillVoyageCompanyData);
but it is not working. it does not unbind the function
unbindonly works for event handlers attached via jQueryReplace:
With
And then attach the handler with jQuery: