in Education by
I have a Bootstrap modal dialog which contains a form. The modal dialog contains a submit and a cancel button. Now on submit button click the form is submitted successfully but the modal dialog isn't getting closed. Here is my HTML:

1 Answer

0 votes
by
Use that Code $('#button').submit(function(e) { e.preventDefault(); // Coding $('#IDModal').modal('toggle'); //or $('#IDModal').modal('hide'); return false; });

Related questions

0 votes
    I have a menu which opens up a submenu on click. If a link has a dropdown menu (has class header ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I have a menu which opens up a submenu on click. If a link has a dropdown menu (has class header ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I have three components - app, sideNav and wallForm. In the app header, I have a button that ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 10, 2022 in Education by JackTerrance
0 votes
    Which of the following plugin in Bootstrap is used to create a modal window? popup alert modal window...
asked Mar 2, 2021 in Technology by JackTerrance
0 votes
    Which of the following plugin in Bootstrap is used to create a modal window? popup alert modal window...
asked Feb 28, 2021 in Technology by JackTerrance
0 votes
    I have a php file and it contains a textfiled and submit button and a div and below is code Page1 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I have a php file and it contains a textfiled and submit button and a div and below is code Page1 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I'm trying to get a modal to pop up on cellClick. I'm not getting any errors, but it's not ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    I have developed a website that queries NASA's image API. The website works fine on my desktop browser. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I have an AbsoluteLayout with a Frame and a Notification. The problem is when I use this.$showModal(.. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I have some wizard-like pages in my application, its keeping state while navigating between small steps, the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    I'm using Grails 1.3.7 and I use tinyMCE via richui. I'm trying to display a modal window which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    How to use custom table in Laravel Modal ?...
asked Sep 30, 2021 in Technology by JackTerrance
0 votes
    I am trying to load a log-out URL once the app close button is hit, Something like the following. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    Through ChatOps, communication can be bi-directional, that is, users can submit commands from the chat room to the bots, ... status to the chat room directly. A. True B. False...
asked Dec 23, 2022 in Technology by JackTerrance
...