0

I have the following code which lets me hide submit buttons once users click on it (so that they don't click multiple times while the form is processing). It works perfectly on desktop and android, but doesn't work on iPhone. My jQuery knowledge is limited. Can someone please advise on how I can fix it?

<script>
jQuery(document).ready(function() {
  jQuery('#gform_next_button_5_85', this).on("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).on("click", function() {
    jQuery('#gform_submit_button_5').css('display','none');
    jQuery('#gform_previous_button_5').css('display','none');
    jQuery('.pleasewait2').css('display','block');
  });
});
</script>
Shiladitya
  • 12,003
  • 15
  • 25
  • 38
Shtarley
  • 313
  • 9
  • 22

0 Answers0