Skip to content

Tag: html

How to set time according to svg length?

I am learning javascript and react and here I am stuck in the challange that where I have to set time according to SVG image’s length (something like progress bar). For an ease and basic example, I am calculating total time of 24 hours in 1440 minutes and I have given passed time let passedMins = 1220 N…

Loop doesn’t work when exported with ParcelJS

I am using ParcelJS V2. I have the following code that gets data from an HTML table. Every <td> in the cell consists of an <input> tag and the getElementById refers to the ID of the input tag. getCount.js script.js When I check my console, there isn’t log from the collectData function. This …

Trying to remove attribute from HTML using JS

Ive made a quiz app, with HTML and JS only and im trying to remove an id from a element which has the attribute, however when i run the code to remove it my JS doesnt find the attribute in any of the elements, if i manually inspect i can see it in the html? i do add this element

Input value from HTML not passing to modal

I am trying to pass the reservation id from HTML to modal. In pictures, when I click “cancel” next to reservation: preview of the screen A modal appears and it should contain the id number of reservation: preview Modal pops up but without the reservation id number. Please, what’s wrong? I fo…