Linked Questions

15 questions linked to/from Hide div after a few seconds
-1 votes
3 answers
5k views

How can I remove an HTML element after let's say 2 days. For example I have a <div> Hello there </div>. I was looking JS .hide and .remove functions but not sure if using JS ...
Cluendo's user avatar
  • 81
2 votes
4 answers
2k views

This is my code - it works if I remove the .delay(2000), but what I am trying to do is remove it after 2 seconds. $('.back').on('click', function () { $(this).delay(2000).remove(); });
Divern's user avatar
  • 363
0 votes
3 answers
2k views

I don't know how to achieve that display: none works not immediately. I need #popUpBox to disappear after a few seconds. $(document).bind("mousedown", function(){ $('#popUpBox').css({'...
0 votes
1 answer
321 views

I have a message in a tag. I wanted to display it for few minutes and then blur it. <p>Your message has been send successfully!!!</p> Can anyone suggest how to do this ?
anu's user avatar
  • 25
0 votes
3 answers
63 views

I want to show a div for few seconds, so I coded: var myVar; function display() { myVar = setTimeout(alertFunc, 1000); } function alertFunc() { document.getElementById('random').innerText = ...
Kate Beck's user avatar
1 vote
2 answers
7k views

I am writing a script which will verify username . I am able to put check on user name. In case username is not fulfilling criteria then I am throwing error. <script> //<![CDATA[ ...
nand's user avatar
  • 517
0 votes
2 answers
1k views

i am building a form and when i submit it it opens the action url. I want to submit the form on click button which should not open the target url but submit the request. as well as i want to print a ...
0 votes
1 answer
895 views

On my website, I have a contact form. When user fills out the form and presses the send button, a message is displayed under the form. I want the message to hide itself after a few seconds. I also ...
0 votes
2 answers
662 views

This is my sign-up form. <div class="tab-content"> <div id="signup"> <h1>Sign Up for Free</h1> <form action="register.php" method="POST"> <div ...
Daniel Smith's user avatar
0 votes
1 answer
395 views

I created a website one which includes articles integration and I have a problem with the pop up about cookies as a visitor, on my page the pop appear on the article and hides almost all of it. Is it ...
0 votes
2 answers
177 views

<?php if( isset($_GET['message']) ) { $message = urldecode($_GET['message']); echo "<h2 id='mydivm'>". $message . "</h2>"; ?> <script> ...
1 vote
2 answers
346 views

thank you for taking time to help me out, i don't have much knowledge in javascript, however i'm trying to make a huge menu for my website, the menu will have many submenus and the submenus will have ...
1 vote
1 answer
121 views

I'm trying to find a way to delay the final part as stated in the title. My initial JQuery code var debounce = false; var elements = document.getElementsByClassName('.Menu') $('#Option1').click(...
Gensoki's user avatar
  • 133
0 votes
4 answers
124 views

Without either padding, height or width, the content disappears after a time of 5000 as it's meant to be. But once I include any of the following properties, the background remains after setTimeOut(), ...
0 votes
4 answers
104 views

I have some code that shows a div with a message in it when button is clicked. I want the div to disappear after a few seconds. I have tried to achieve this adding $(this).delay().hide(500); in the ....
kil lie's user avatar
  • 89