Skip to main content

All Questions

0 votes
2 answers
570 views

Show hidden element if their character length is less than 8

I have a hidden element called ShowUsername that I want to show if the user inputs a username that is less than 8 characters. I can't seem to figure this out if someone could help me out. I currently ...
NoLuckCollector's user avatar
0 votes
0 answers
177 views

How to implement a permanent redirect from an old invisible page to a new one in JavaScript?

I have an old webpage, which should be redirected to another one. The redirection works, but the user can see the old webpage for some seconds. How can I make the old page invisible? I tried to use ...
Paula's user avatar
  • 1
0 votes
1 answer
97 views

Div flicker when fading in and out with timeout

one div I am using like a done msg. It should appear when a process is finished and disappear after a few seconds. For that I coded this little code snippet: function showProcessFinishedMsg(msg)...
Filip Degenhart's user avatar
2 votes
5 answers
9k views

JQuery: How to fire click event on hidden element?

I want to create a flashing effect. When user click the flashing element, it will be disappeared. However, it seems not every "user's click" can fire the "click event". Sometimes, when I clicked the ...
bcjohn's user avatar
  • 2,473
0 votes
1 answer
660 views

Visability if statement: if css display is not none, do

I have this Javascript function and it does not work. Got no errors from brackets. I am aware, that this also can be done with visibility, but in my case this seems better and I want to stay with it ...
Nachtfalter's user avatar
3 votes
2 answers
651 views

"show/hide" a div with javascript not jquery, and not with display:none

I need to show/hide up and down a div, but: It can't be with jquery: because, togle(), slideTogle(), fade, animate, etc, they all use display:none, and I need the div using it space in the DOM (I'll ...
pmiranda's user avatar
  • 8,164
-1 votes
4 answers
65 views

How should I modify this code so it works with severel id's?

<script> var toggleVisibility = function(element) { if(element.style.display=='block'){element.style.display='none';} else {element.style.display='block';} }; ...
user avatar
8698 votes
67 answers
3.2m views

How do I check if an element is hidden in jQuery?

How do I toggle the visibility of an element using .hide(), .show(), or .toggle()? How do I test if an element is visible or hidden?
Philip Morton's user avatar