Category : dom

I am trying to get the value of the check box to display on we page <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox1" value="JAVA"> <label class="form-check-label" for="inlineCheckbox1">JAVA</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox2" value="HTML"> <label class="form-check-label" for="inlineCheckbox2">HTML</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox3" value="CSS" > <label class="form-check-label" for="inlineCheckbox3">CSS</label> ..

Read more

I’m making a todolist right now and encountered a problem when deleting a list. // nest icon inside button tag delBtn.innerHTML = ‘<i class="fas fa-times fa-lg"></i>’; I have nested an icon inside a button tag so when I’m clicking the delete button on the very edge it deletes the ul tag. And when clicking inside ..

Read more

I’m building a todo list right now and wondering about the usage of innerHTML. If I want an icon inside of a button tag: btn.innerHTML = ‘<i class="fas fa-times fa-lg"></i>’; which is <button><i class="fas fa-times fa-lg"></i></button> am I right? What is the difference between the above and below? btn.innerHTML += ‘<i class="fas fa-times fa-lg"></i>’; Source: ..

Read more

I am making an HTML/JS document, and I’ll need a way to take a picture of the screen every frame and store it in an array, so that it’s basically like a screen recording. But I’m having trouble knowing how to do this. What I was thinking was something like this: var pictures = []; ..

Read more