I have 3 anchor tag buttons and 6 divs, i want to assign 2 divs each for a button and when clicked both the assigned divs should get displayed/hidden accordingly.  I was able to hide/show the 1st 3 divs using below code however for next 3 divs(image...
I am creating a series of drop-down elements, with an initially visible question and an answer that is toggled between display: block and display: none upon clicking the question. Clicking each question for its answer also causes all the other answer...
So I saved some data in localStorage.  I get them back from localstorage to the table.  When I click on the button to enter new data, the data entered earlier is duplicated in the table. When I refresh the page, everything is fine.  $(document).ready...
I'm trying to make a toggle that would change an element's display to "none" if it's "block", and then if it's "block" to "none". Basically:  if (item.style.display == "none") {     item.style.d...
my code isn't working:  JS:  function openform_1() { var a = document.getElementById("2");  if (a.style.display === "inline") { document.getElementById("form_1").style.display = ("inline"); document.getElementById(...
I want to make a button that changes div display mode and changes innerHTML of button on-click.   Display of content2 is initially set to 'none'.  My code doesn't currently change anything.  Thanks for the help.  Javascript   let button2...
As I mention this in the title in found a jQuery function to create a button which hide and show a paragraph html but, when i go on my page I want my pragraph to be hidden, Now i have the inverse.. the paragraph is display from the beginning      <...
I have two div on top of eachother. One is to display a border and the other is to display an image. I'm using the jquery .draggable(); method to make the div underneath draggable. The problem is that I can not move the div underneath. If it is o...
I want to parse subtitles from srt files (which I already did by following this Parse a SRT file with jQuery Javascript). But now I do want to display just one subtitle at the time (only text), I have tried with:      document.body.innerHTML += subti...
I want to display a pop-up with text whenever I hover on orange text but I'm struggling with two different situations with the code I wrote:  1) The pop-up's are already showing when you land on the page. If I try display: none on the "po...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.