I want to disable or hide a button using jquery after the form has been submitted. I have tried some solutions but nothing happened.. I have included js file in my page.
Here is my submit button code:
echo '<td>
<a href="shortlist.php?vid='.$row["v_id"].'&uid='.$row["userid"].'"">
<input type="submit" value="short list" id="shortlist" name="shortlist">
</a>
</td>';
Here is my jQuery code.....
$('input:submit').click( function() {
console.log("Form is submiting.....");
$('input:submit').attr("disabled", true);
});