Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8743041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:36:24+00:00 2026-06-13T11:36:24+00:00

I am having a little issue with a Twitter Bootstrap modal. It is customized

  • 0

I am having a little issue with a Twitter Bootstrap modal. It is customized pretty far.

What we have done is open a modal when the user click complete objective, then press submit button, post() to controller, then load() the next screen inside the modal body. This is a survey that is optional. The user can then fill it out and receive a thank you message which disappears after 3 secs.

Here is the issue:
1. If modal window is closed on survey and another objective is clicked to complete, the survey still shows up in the modal.
2. Same thing happens once user completes survey, try to complete another and the thank you modal pops up.

Question
How can I use jQuery to create some sort of function that will reset the modal on close… or how to reset it once the success message is reached.

I guess just know how to create a function that will reset it, then i can call that whenever needed.

Got any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:36:25+00:00Added an answer on June 13, 2026 at 11:36 am

    Found the solution!

    using the function built in

     $("#myModal").on("hidden", function() { 
     //do something
     });
    

    I was able to reset the html in my modal-body and the buttons as well using simple css class changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im having a little issue here. I have MediaElement.js set on my project. It
Basically I'm having a little issue here. I have a superclass and a subclass.
I'm having a little issue with a script I'm writing... let's say I have
i have been pretty pleased so far with this plugin, but am having a
I'm having a little issue with an application I'm making. I have a page
just having a little issue figuring this jquery problem out. I have a table
Have a little design issue after having upgraded to iOS 5 and Xcode 4.2
i'm having a little issue with doctrine using symfony 1.4 (I think it's using
I was hoping someone could help me with a little issue I'm having trouble
I'm having a little trouble getting my head around a Javascript animated scroll issue.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.