I am attempting to target a parent element and a child element using an intersectionObserver, then I have a function changing the background of the parent to a different color and rotating the child element. This code works on the parent div, however the child item returns as undefined. Am I unable to target …
Tag: html
Javascript – Eventlistener function not working, toggle opacity on click
In the box I want it to say Hi, but when you click on the div “hi” it will instead toggle the div with “bye” using opacity. My design is not actually with text but svg paths, so this was the best way to translate what I need help with, without having to much code in the snippet (as the
Through Toggle button show Div Section?
I am trying to use toggle javascript option. The first view button is active by default (with blue bg) some how. All the hidden div is appearing on the first section is visible. The names should appear when the corresponding button is clicked rather than all appearing by default. The last button is also not w…
autocomplete list is present in html but not showing inside slider
I want to show autocomplete list inside slick slider , on typing country name , html is adding country hints in dropdown but it is not visible and is white , i am unable to find problem , u can check this by inspect that html is coming but not visible , why is dropdown not visible I want to
What is the difference between adding .classA and .classB.classA in CSS?
the problem is when I put .show instead of.box.show in CSS the even boxes don’t come from the left side. I just wanna know why? because I thought they were the same thing. but it seems like in this code they are behaving differently. Answer .classA targets elements with CSS classclassA and has a CSS spe…
Is there a way to translate a nested element with transform=”translate(mouseX,mouseY)” in JS?
Edit: Code: note: similar but not a duplicate of Creating a new SVGTransform object to append to SVGTransformList because I can’t comment xD and I want to move an SVG in an SVG to my mouse position. The problem is, the #snap-icon-x-container element appears to have no viewportElement. In Creating a new …
I want to add same text field by clicking + button but problem is only first + button is working other + button is not working? help needed
I have used jquery code for solving issue but it won’t work.Only first + button is working. if I press first + button then textbox was added in below 2 (+) buttons(i.e beside Annexure II & Annexure III)–>1 image description After Clicking First (+) Button beside Annexure 1 Sheet, 1 row i.e …
randomizing number function with two parameters is not randomizing between the parameters
I have made a function that is suppose too randomize a number after being givin two numbers to work with: min and max. I call this function: random(min,max). I also have a button to call this function, but first detects to see if two inputs are not undefined, NaN, or “”. My program seemed to work …
Cloning Site, in , how do I convert it to regular CSS?
I am trying to clone https://www.sovereignselfdefense.com/ in HTML. The site was built in kajabi. Client wants to move it to a WordPress theme. When I downloaded the site, I see code such as: I did some googling and this is outdated incorrect HTML convention. How would you separate the tag into an external CS…
How to make correct loop of JSON in React
I’ve got a problem with making a correct loop in React. I want to fetch data from JSON to don’t repeat components. I tried to make two loops and then two maps, but everything was in bad order. The other problem is that “description” is also an array that’s why I’m not able …