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
Category: Questions
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
Hide a parent div when filtering
I have timeline with a filter that allows users to show/hide events. The way the CSS is formatted requires that the entire parent (“.timeline”) be hidden if no matches were made in the filter, otherwise there’s a border that remains visible: JSFiddle to see example I tried including $(‘…
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…
Button created doesn’t have onclick
Here’s my HTML: and my javascript: When my button is created the onclick event is fired automatically (I get hello printed in the console without clicking on the button) and then doesn’t work. When I inspected the page I realized that my button didn’t have an onclick anymore (just class and …
Restrict the scope of functions in JavaScript ( Slider Use Case )?
In the following script, the code works when there is a slider, but when the number of sliders on a page is more than one, the next sliders do not work. How can this script be changed when we have more than one slider on the page so that each slider ” Draggable Feature ” works separately and does …
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…
JS return an array and an object from function
In my react app I have a hook that handles resizing of the screen. The function returns an array of width and height. And i call the hook in my react app like const [width] = useDimensions(). I also want to call the hook like const {isSmScreen} = useDimensions(). Is this possible and how can export it from th…
How to send a variable to Backend – Mern Stack
I am trying to get some records from Mongo db based on a query. I completed the Back-end and it works well with the Postman but I do not know how to send the variable for the query from react front end to the back end. There is a Client model class and I want to retrieve all the clients
create new array from nested array object
i want to create a new array from api, but i don’t know how to make it, i’m very confused in looping each array This is each data this is the main data of api i want to create a new array like this, bcs i want to create a new object containing the group_id of each same data in