Good Morning.
I am working on button click counter using javascript function. The tricky thing is button type is submit, so page is reloaded whenever I click this button .
Here is the code which include the button.
<div class="skip">
<form method="post" >
<input type="hidden" id="skip_tinv" name="skip_tinv" value=""></input>
<button class="skip" type="submit" value="8" name="submit" onclick="skipCounter();">Skip >></button>
<?php include('includes/aftersubmit.php'); ?>
</form>
I have ten of this form in one page(which means ten of skip button in one page), and I want this "skip" button is disabled when it clicked more than three times. Do you have any idea of this?
The idea using php is also welcomed. Thank you for your help.