Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select child element javascript

/*
<div id="parent">
	<input value="off" />
    <button type="button">Click Me</button>
</div>
*/

const input = document.querySelector('#parent input');
const button = document.querySelecctor('#parent button');
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #select #child #element #javascript
ADD COMMENT
Topic
Name
7+7 =