Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get all input fields inside div with JavaScript

const divElem = document.querySelector("div");
const inputElements = divElem.querySelectorAll("input, select, checkbox, textarea")
console.log(inputElements)
Source by thewebdev.info #
 
PREVIOUS NEXT
Tagged: #How #input #fields #div #JavaScript
ADD COMMENT
Topic
Name
6+7 =