$(".hook").submit(function(){ alert($(this).attr('action')); return false; /*Stops the submission */ });