I have the default anchor disabled if it has a class subnav as shown in this fiddle.
I only want this disabled for the first click then I want the normal anchor function
this will work for you
$("#elementid").bind("click", function( event ) { alert("This will be displayed only once."); event.preventDefault(); $(this).unbind( event ); });