I have written a post about this problem Want buttons be displayed ONLY when clicking on another button with JS and I have not gotten a satisfying answer. I formulate my problem again. I have to find a right JS code to solve this issue. I have a set of buttons (“Backgrounds”, “Ears”, &…
Tag: html
google.script.run problem on Google Apps Script
I am working on a Google Apps Script project, and I have made a html form that will automatically paste the user answers in a sheet. My problem is the following: I need to add elements in a drop down list with a separated form. To do this, I have made a function that will read some cells and add
classList.remove is not working as it should?
I have an issue with this conditional, the goal is to show the li with desc when focusing on it. When another is focused in the domem the previously focused one should be removed. In other words: Once one desc is showing the the other must disappear, what is strange is that it works for 2 times ok, then it
API accessing certain values from data with JavaScript
I have the following API Data: And here is my code with a fake API code: All I would like to do is get the changesPercentage and display it on my webpage with HTML and CSS. I will have various data from different companies, so a versatile solution would be very helpful. Answer You’re trying to get chang…
Find the element and append value in it using jQuery
I have three <li> inside the <ul> . Now the structure of the html looks like this inside each li this is the html So when I click on the chbs-button-style-2 I want to add variable value in the chbs-vehicle-content-price div by using $(this). this is I where I am stuck Answer Not sure why you are d…
“Button” shrinking after applying JS function
I am trying to build a timer. I am in the process of coding the play and reset button. It seems to work well, except that the “button” for the play or reset button would shrink after I clicked it once, and a refresh is needed to make it the original size again. I have tried to see if there
Partial flickering of HTML canvas while idle
I have HTML canvases on top of each other, I draw them just once, I witness that the load has been completed and everything is fine for few minutes, then randomly, without the canvas ever being redraw then lower half of the top canvas begings flickering, no JavaScript function being done in the background. I …
Changing input button to images
I am new to JavaScript. I am having trouble changing the show button and hide button to images instead. The show button will be a different image to the hide button. How would I go about doing this? https://jsfiddle.net/ej0r4amd/2/ Answer Since you’re using jQuery, you can use the <input type=”…
getSelection().focusNode inside a specific id doesn’t work
I have code to bold/unbold scripts via Window.getSelection() I got it from this answer: Bold/unbold selected text using Window.getSelection() It really works without problems . But when I looked for another code to make the selection inside a div specified with id I found this answer : How to getSelection() w…
How do I make textbox’s text disappear after submit button is clicked
I wanted my textbox’s text to disappear after I click submit button This is how my website looks like This is my HTML script: This is my css script: This is my javascript script: It’ll be really helpful if you can help me. I want the to textboxs’ text to be gone after submit button is clicke…