All Questions
13
questions
0
votes
3
answers
596
views
Why does my script only act on the first element with a particular ID value?
I have a query that produces a number of DIV id="toggle_panel" I know I can effectively change the ID of the DIV dynamically.
Below is the script, straight from w3schools, which works great out of ...
0
votes
1
answer
52
views
(HTML/Js) Cycling element visibilities
var terminal = document.getElementById('terminal');
var vncScreen = document.getElementById('screen');
var video = document.getElementById('video');
var vncToggle = document.getElementById('...
1
vote
1
answer
266
views
I have 3 buttons with a JavaScript function each and only one of them working
I've been trying to make a Chrome expansion. I have 3 divs and I need them to show only when a button is clicked (each div responds to a button). Also I need the 2 divs left to hide (only one div ...
0
votes
2
answers
53
views
Toggle a bunch of divs also changing the link
I have a bunch of divs, identified with an ID starting with a string (kind = "brand").
I want to toggle the visibility of the divs by clicking an href inside an span. I want the text of this link to ...
0
votes
2
answers
2k
views
Javascript: Toggle div visibility in two steps
This question maybe stupid for many here. I have a bunch of divs and want to make them appear/disappear on click with special behaviour:
On-load state: all divs visible
click: all divs disappear, ...
0
votes
2
answers
281
views
Javascript toggle w/ multiple divs, first div initially visible
I've got a page with multiple divs and a javascript toggle in place that swaps the visible div when you click the links, but I'd like to have the first div already visible when the page loads (myDiv1 ...
0
votes
2
answers
993
views
Hide div when clicking on link text
I have a fullscreen slider in background and a text logo on it for my wordpress homepage.
I would like to hide and show this slider by clicking on my text logo.
The function I use works actually ...
3
votes
4
answers
25k
views
Javascript toggle visibility multiple divs
http://blog.movalog.com/a/javascript-toggle-visibility/
this is a page with some code and a script im using in my site for an image gallery, however when trying to toggle the visibility of multiple ...
0
votes
1
answer
2k
views
Jquery Toggle visibility button
Im trying to make a button which should make one element hiding (display: none;) and one visible and vice versa.
Here is an example of the sort of thing ive got:
example
at the moment when clicking ...
0
votes
4
answers
4k
views
JQuery - div visibility via checkbox
I have a series of matching checkboxes and divs on my page. Each checkbox needs to be able to show/hide the corresponding div when it is checked/unchecked. Each div starts out hidden on page load. I'...
3
votes
2
answers
1k
views
How to toggle visibility when user makes a selection
I have a select form with several options. I also have a div that I would like to show ONLY when a particular option is selected. Could you guys point me in the right direction? What would be the ...
0
votes
3
answers
4k
views
Hide partial div - toggle open on click
I know how to toggle an entire div, however I only want to hide all but the top 10% or top 100px, for example. And then when the div is clicked, the entire div opens.
I thought I saw this a while ago,...
1
vote
2
answers
3k
views
jquery only toggle one element without having to use ids
i have multiple divs with the same class on my page. I want to be able to toggle them individually. Using this script:
$(document).ready(function() {
$('.file').hide();
$('a.toggle').click(...