Skip to content

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…

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 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: