getElementsByTagName is for selecting elements based on its tag say div, input etc.. getElementsByName getElementsByTagName. Realizing that you might have multiple div section and your hidden input is the first child you could use these:-e.parentNode.getElementsByTagName("input")[0].value; or. e.parentNode.firstElementChild.value;
May 22, 2020 In this tutorial, I will walk through how you can use vanilla JavaScript and CSS to hide HTML elements and build a toggling click feature to
HTML; CSS; JavaScript; Tillgänglighet Detta är exempel på hur en pnr-input ser ut och fungerar. id="readspeaker_button1" class="row rs_skip rsbtn rs_preserve hidden">