var previousTarget=null; $("a").click(function() { if(this===previousTarget) { alert("You've clicked this element twice."); } previousTarget=this; return false; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)