All Questions
13
questions
0
votes
1
answer
453
views
Showing Hidden Image With Onclick Function
my objective is to have an image hidden until a button is pressed to then show the previously hidden image.
Right now I have an image in html with an Id of "yellowrose" that is hidden with ...
2
votes
0
answers
612
views
CKEditor on hidden Div
I'm developing a responsive website with 2 CKEditors.
One CKEditor is visible and other is hidden:
<div id="mainWebContainer" >
<div id="mainWebContainerBox">
<textarea name="ck1" id=...
31
votes
2
answers
78k
views
Hiding an element: Difference between Javascript attribute and CSS style
I wonder if there is any difference in the result when hiding an element with JavaScript attribute or CSS Style.
For example:
element.setAttribute("hidden", true);
vs
element.style.visibility = "...
0
votes
1
answer
177
views
Show one div and close all the others
Lets say that I have 3 differentboxen:
<div id="1" class="box" style="visibility:visible"><p>Box 1</p></div>
<div id="2" class="box" style="visibility:hidden"><p>...
0
votes
1
answer
437
views
Onload styling in javascript?
could you help me with the onload function in Javascript?
preload.style.visibility = 'hidden';
Could you tell me what the onload version of this would be, in the same type of format as this code?
...
0
votes
2
answers
3k
views
javascript - does a click event fire on an element if it's not visible?
If you change the visibility of an element visibility: hidden, will a click event still fire if the user clicks it?
I want to "hide" an element (i.e. <span>) and disable the click event from ...
0
votes
2
answers
582
views
How to change visibility of an element on current page?
Some currently building a little interface for a project and I'm stuck at a point. Currently I have a function setPage() that set a .current class to the active link.
But... I would like to change ...
1
vote
2
answers
629
views
After isset($_GET['post_id']) === true), need to call Javascript to turn <div> visibility to hidden
Relatively new to PHP here, but here's where I'm at:
I have a simple PHP sort of email-sent validation going on, but after the page checks and confirms that the email is sent, I need to call ...
1
vote
2
answers
6k
views
JQuery testing if an element is visible or hidden and then add remove classes
I have a div that starts off on page load hidden. When I toggle the "+" element, the relative div toggles to visible. I am trying to add a class based on is(":hidden") or not with an if - else ...
1
vote
1
answer
25k
views
JavaScript: Uncaught TypeError: Cannot read property 'style' of null [duplicate]
I am building this small cookiescript which creates a cookie when clicking on a button and then hides the message.
But now I am building the function to hide the message (div#cookie) when the cookie ...
9
votes
12
answers
118k
views
Making a button invisible by clicking another button in HTML
How can I make a button invisible by clicking another button in HTML?
I have written like below, but it doesn't work.
<input type="button" onclick="demoShow();" value="edit" />
<script type="...
0
votes
3
answers
602
views
How can I change this JS to make it visible?
_createInput: function(){
var self = this;
var input = document.createElement("input");
input.setAttribute('type', 'file');
input.setAttribute('name', this._settings....
1
vote
2
answers
1k
views
css/javascript visibility visible/hidden is very slow on Blackberry
document.getElementById("spinner2").style.visibility="visible"
Visibility visible/hidden is very slow on Blackberry (OS4.6). The screen seems to be redrawing which makes it unusable in Ajax ...