We can solved this problem by using JavaScript:
Lets say on the html, this is the alert block.
On the JavaScript, we will add an on listener to prevent it from removing from the DOM when the user closes it.
By adding return false on the close event, this will prevent the alert from being remove from the DOM. Prior to that we should hide it so that it not be visible on the page.
When we want to show it again, we will just invoke the show method.
I believe this can be further explain if we have a sample code to play with:
The example below is a form entry that will validate empty entry before posting data to server.
Screen Shot:
index.html
site.js
Thank you! Hope this article helps.
6 comments
Awesome!
ReplyThanks you saved a lot of time
ReplyYou made some good points there. I did a search on the topic and found most people will agree with your blog..
ReplyAlso Visit this site for to learn more about Bootstrap Training
You really did a great job. I found your blog very interesting and very informative. I think your blog is great information source & I like your way of writing and explaining the topics. Keep it up. A bootstrap is a small strap or loop at the back of a leather boot that enables you to pull the entire boot on.In computers, to bootstrap (or “to boot”) is to load a program into a computer using a much smaller initial program to load in the desired program Readmore..
ReplyYou made some good points there. I did a search on the topic and found most people will agree with your blog..
Reply| Certification | Cyber Security Online Training Course|
Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course|
CCNA Training Course in Chennai | Certification | CCNA Online Training Course|
RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai|
SEO Training in Chennai | Certification | SEO Online Training Course
Nice Article, thank you for sharing.
Replylearn power bi