ainbila Posted July 12, 2021 Share Posted July 12, 2021 hi , i want to disable or hide the submit button after user submit and just display the update button .My problem is this form in form of tab by tab .so i dont know how to disable the button button javascript $('#btn_confirmation1').click(function(){ $('#btn_confirmation1').attr("disabled", true); $(document).css('cursor', 'prgress'); $("#application-form1").submit(); return true; }); form (all in one page) <form id="application-form1" action="save_form_semakan.php" method="POST" enctype="multipart/form-data"> <!--tab nav tabs--> <?php include 'nav_tabs1.php';?> <div class="tab-content" style="margin-top:16px;"> <!--tab application guideline--> <?php include ("tab_semak1.php")?> Quote Link to comment https://forums.phpfreaks.com/topic/313069-hide-button-submit-after-submit-form/ Share on other sites More sharing options...
requinix Posted July 12, 2021 Share Posted July 12, 2021 Your code will disable the button that was clicked. Are there other buttons that also need to be disabled? All your screenshot shows is the Submit and Update buttons. Quote Link to comment https://forums.phpfreaks.com/topic/313069-hide-button-submit-after-submit-form/#findComment-1587951 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.