use this code in wplms >> footter >> google analytics.
<script>
jQuery(document).ready(function($){
var count = 5,
$btn = $('div#assignment p.form-submit input#submit'); //Or which ever you want
//Change the label of $btn
$btn.val($btn.val()+' ('+count+')')
$btn.click(function(){
$btn.val($btn.val().replace(count,count-1));
count--;
if(count==0) {
return !$btn.attr('disabled','disabled');
}
});
});
</script>
allow the button click as per your requirement.
refer: https://share.getcloudapp.com/OAuLYY8r
Note: "Logan can you stop wasting my time and fix the bug? the assignment upload is bugged allowing multiple clicks."
refer:
https://share.getcloudapp.com/E0uExxXP
it's not a bug, its a simple html structure. if you goto forum or in #facebook#linkedin message/ post section and if you click the send button 10 times the message will go the 10 times. you can test my statement.