I have some forms on my website, and I'm using the jquery script below to hide the submit buttons the moment someone clicks on it so that they don't click it multiple times while they wait for the form to submit (the code also replaces it with some "please wait" text). It works perfectly on Desktop, but does not work on mobile at all. Can someone advise as to why this would happen please?
<script>
jQuery(document).ready(function() {
jQuery('#gform_next_button_5_85', this).click(function() {
jQuery('#gform_next_button_5_85').css('display','none');
jQuery('#gform_previous_button_5_85').css('display','none');
jQuery('.pleasewait').css('display','block');
});
jQuery('#gform_submit_button_5', this).click(function() {
jQuery('#gform_submit_button_5').css('display','none');
jQuery('#gform_previous_button_5').css('display','none');
jQuery('.pleasewait2').css('display','block');
});
});
</script>