I am trying to get my head around the <dialog> html element and the example laid out by MDN here. When I run the code from it… … I find that when the dialog opens the focus does not completely “trap” like the ARIA modal example describes. They say when user presses the tab key: W…
Tag: html
Adding new dynamic form after button click
Hey guys I have one form including let’s say data about person like name, address and so on. Then I have a button “add new person”. I’m just confused because after clicking on that button the same form should be created so user can fill data about second person but this might be proble…
How do I make the dropdown menus appear horizontally instead of vertically?
I am currently learning to develop a website using HTML5, CSS, Bootstrap and JavaScript. How do I display these buttons to be displayed horizontally instead of vertically? I want them to be displayed in the middle, below the Quick Buy with decent spacing between the buttons. Here are some parts of my code: An…
Changing div classes with Js
I’m trying to change classes of div with onclick, but there seems to be something wrong with my code because it doesn’t work. What can I do to make it work? Answer i believe you missed the ‘#’ in your css
How to get the filename from the full path and store in an object property in Javascript?
My initial problem was to store only the filename from the full path on an object and I did find the answers to that online but I had problem storing the same in a property of an object. Here is a piece of code that I have written. Hopefully my problem would be clear. This whole code is inside a
How to make a video minimized automatically when it ends
I use a button that calls the function “play()” that make the video play on fullscreen How could I make the video auto-minimized when it stops playing? Answer .onended() this function use in end video. The ended event occurs when the audio/video has reached the end. This event is useful for messag…
Adding Buttons to a Table created dynamically in vue.js
I am trying to dynamically create buttons which are displayed in the 5th (last) column of a table, which is also created dynamically. Everything is created properly. However, upon clicking the buttons, the function is not triggered. Perhaps it is because I am using vue.js to develop my front-end. I have tried…
How can I fix this button
When I click on any button it shows same first button output. How can I fix it. I want it be different when I click on different button it should display same output that button has. I want it to be on my website. Answer Using nextElementSibling:
How to make a password system for challenges like rootme web [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I’m making a website where you have to respond to questions. But the…
Create Form dropdown list with input amount value
I ask for help or suggestions for the form I made: Template Design: I want to create a form where the item list can select the available items in the drop down and then give it the amount used. then there is an add button to add another item. i am confused how to make html form and javascript /