I have created a form for entering product data which sends the results back to the mysql database. I have a dropdown/select id named ‘attribute_name’ and the other ‘attribute_value’ I have managed to send the results back to the database and that is working great. I would however like…
Tag: html
Cannot read properties of undefined (reading ‘classList’)
I’m following a tutorial for making BattleShip in javascript and html but i get an error : This is the tutorial: https://youtu.be/U64vIhh0TyM The error happens randomly sometimes, it’s been 5 days since this error occured and I can’t understand how to fix this. I hope that someone can find a…
how can i curve to progress bar in css
I would like to create a progress bar like this curve progress . But i don’t know how to make it. I created this one straight progress bar and here is my css code how can i curve to a progress bar ? is it possible or do i have to try an another tag? Answer My suggestion would be
What is the best way to make these buttons insert specific text into a text field?
I’ve made a virtual keyboard that has Russian characters and Latin characters. I want to make each character key on the virtual keyboard (.keyLetter) insert the Russian character (.primary) into the text field. Additionally, I want to make each physical keyboard keypress activate the corresponding butto…
Continuous Horizontal HTML page? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 1 year ago. Improve this question I’ve been poking around and haven’t really found a clear…
How to add a ‘data-*’ attribute when using Object.assign to create an html element
I have the following code: I want to set a data attribute in the object assign, instead of separately. I tried dataset: { showtime: data.duration }, but that results in the following typeerror TypeError: setting getter-only property “dataset” Thanks in advance! Answer Maybe this might be a nicer w…
Drawing A Rotated Path2D Object on canvas
I have a canvas where i want to draw a rotated svg. In order to achieve this, i created a Path2D object and used the context.fill() option to draw the svg. Moreover, I used context.translate(x , y) inorder to position the svg. Now, the issue i how to rotate this? I found some solutions where it stated that fi…
How to make card-slider using html,css and javascript
I want to create a card-slider. There is a total of 5 cards. # cards are visible to the screen and two are off the screen, one on the left and one on the right. The arrow icons should be used to move left and right. Answer You can try it [click here][1] [1]: https://codepen.io/alextanta/pen/mXxxgj
How to change backdrop-filter in javascript?
Hi i cannot change backdrop-filter with javascript please help me thanks. Answer You must use camelCase when updating CSS properties: e.g. .backdropFilter().
How to create a div using JavaScript?
I have the following <div> which I have created using HTML and CSS. I don’t want these divs to be created when the page loads, instead I would like them to be created only when a JavaScript function is executed. I would prefer if they were actually created by the function, if possible, rather than…