Linked Questions
15 questions linked to/from Hide div after a few seconds
-1
votes
3
answers
5k
views
Remove HTML element after fixed time [duplicate]
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 ...
2
votes
4
answers
2k
views
How do I delay the removal of a div with jquery? [duplicate]
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();
});
0
votes
3
answers
2k
views
Delay of a few seconds before display:none [duplicate]
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
How to display a message in <p> tag for a few minutes and make it invisble in jquery? [duplicate]
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 ?
0
votes
3
answers
63
views
setTimeout while showing element not ruining as expected [duplicate]
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 = ...
1
vote
2
answers
7k
views
How to hide/remove a error message after showing it to user after few second in javascript
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[
...
0
votes
2
answers
1k
views
How to prevent a form from opening action url and only print when submitted?
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
Hide iframe content after a few seconds
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
Echo success or failure on the same page
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 ...
0
votes
1
answer
395
views
auto accept or disable the pop up for cookie
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
Javascript hide in php
<?php
if( isset($_GET['message']) ) {
$message = urldecode($_GET['message']);
echo "<h2 id='mydivm'>". $message . "</h2>";
?>
<script>
...
1
vote
2
answers
346
views
javascript hide dropdown menu on timeout
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
Delaying the display:none [final] part of fadeToggle
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(...
0
votes
4
answers
124
views
How do I remove the background after setTimeOut() is complete?
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
Hide div after being shown
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 ....