Hello. There is some construction Html
:
<div class='class'> <input type='checkbox' id='myCheckbox' /> </div>
I take this checkbox
item
var checkBox = document.getElementById('myCheckbox');
And the question is, how do I get the element of the DIV
in which this checkbox is located? Under the div element, only one element is the checkbox
.
PS Without the use of libraries.
$('#myCheckBox').parent();
- Specter