Is it possible to disable an <a href="#" onclick..../> after the first click. I have link that calls an AJAX class and I want to prevent double clicks. Here is my link:
echo '<a href="#" class="cartLineDeetButton" onclick="processURL(\'includes/ajaxRequest.php?cmd=doProcessURL\', \'invUserIDACH\', \'postedWrapACH\', \'<img src=images/ajax-loader.gif />\');">';
echo 'Submit';
echo '</a>';
I was reading you can do e.preventdefault(this); How would I pass "this" in the function since it already has parameters?