Hi,
In my MVC 5 application, I am opening one Edit form on modal popup, opening another Controller Index form in the second modal from the Edit modal. From the Index modal, opening the Create form in the third modal. Everything is working fine but cannot close the third modal on submit. The script to open the Index modal is on the Edit form (first modal), the script to open the Create modal is on the Index form (second modal) and the Ajax call to create item is on the Create form (third modal). What I want is-
1. When the item is created on Create modal (third modal), the modal will be closed on submit and data will be refreshed on the Index modal (second modal)
2. The Index modal (second modal) will be closed by a close button (X) and the user will submit the Edit form (first modal)
Issue-2 is working but when the I close the Index form (second modal) by the close (X) button, the link to open popup on the Edit form (first modal) is disabled, it never worked until the form is re-opened. The same thing happens if I close the Create form (third modal) by closes (X) button, cannot re-open the Create from.
Please help me out of this.