Skip to content

Tag: html

How to print the selected checkbox values after submit

Here is the my checkbox list and the button which I need to submit the data.. I am using below class when button clicked.. From above method I could see only one value in checkboxvalues as in the image when button clicked eventhough I have checked several checkboxes. Can someone show me how to improve my code…

how to remove the appended elements in jquery

By right-clicking on each picture, the picture will be removed, and a new item will be created by clicking on the + button. But the problem is that the new items that are created (appended) could not be removed. Why is this the case? Answer Because those aren’t targeted by the event handler. It doesn&#8…

Dynamically append the element through JavaScript Dom

Hers’s question which I need answer Exercises: Level 1 Question 1 I tried to append the child dynamically and get the result vertical not in the compact manner as you will see in the question output when you go to the link You can see the code of both HTML and javascript above!!! Do help with the code w…

Change text in element when another element is hovered over

I have three button elements and depending on which button is hovered over I want the text box to have a diffrent text. When not hovering over the buttons text element should have “See details here”. I would like to have 20 buttons is there a better solution than the one below? Answer Use an objec…

Make a div smaller when scrolling

Hi i tried to make the div smaller wqhen scrolling. however i found some article that the div is small then when scroll it make bigger. i wanted the opposite. when run the image is 100% then when scroll it will be smaller. can someone help me please? i am new to this This is the code: https://codesandbox.io/s…

stop counter on data attribute for multiple values

I have many divs that contain an data-attribute with a different value for each I try to print this value by counting using javascript The problem is that the counter doesn’t stop on the data-num value it counts to infinity How can i stop the counter for each one in the value of data-num for each div? A…