I have the following code attached to an item on a web page:
(function(){
var vName = $("#NAME").substr(2);
$("#NAME").ondblclick = new Function("vName+".remove();");
$("#NAME_2").ondblclick = new Function("processMove();");
})();
The code so much is not an issue but what I would like to do, via jQuery is to remove the ability to perform a “ondblclick” on this item, i.e., would like to remove this function or double clicks on this item altogether, only for a particular criteria, which again is not important as part of this question.
Just
.unbind()it: