Skip to content

Tag: html

Get all cheched ckexbox and set it to hiden input

I have 5 html checkboxes, but every time they have different value, I want when everytime when i check or uncheck checkbox to call this js function to get all checked chexbox and add it to hiden input This is my html And this is my js JS dont save in hidden input all checked checkbox any idea? Answer Here&#82…

addEventListener stops after the first execution

I’m running into an issue with my current JS project. It’s a simple library where the user inputs the info and spits it out onto the page. I have a delete button that I add to each new div, which I’ve added event listeners to the buttons. When I click delete, it will delete the first one &#8…

How to play different audio files on a single page

I would like to play different short audio clips on a single page by using different buttons, however the code I have means that all buttons will play only the first .mp3 located in the audio folder regardless of the html code I have that specifies which button will play which audio clip (example below). Coul…

Blured background behind the div

I would like to make a pop up that will appear immediately after loading the page. In addition, I want the background behind the black div to be blured, unfortunately after using filter = blur (8px) whole page is blured. Help… Answer Use the backdrop-filter on your overlay element (the one that fully co…

DOM Quiz will give incorrect answers

I am learning DOM and wanted to create a simple JavaScript with Html quiz (for exercise). Now the problem I’m having is that when I hit submit, all of the answers are right instead of one being right and 3 being wrong. I think it is a problem with my html and the way I assigned the ID’s to the

mobile navigation wont responsive

Hey im working on a website for a client, however i think ive missed out something that is really annoying me atm. http://www.enlock.co.nz/asp-web/source/index.html here is the preview im providing for client as a small design mockup. You can notice that on web if you resize the page it will change and be res…