I have a dropdown, when value of "Other" gets selected from that dropdown, it should trigger an input form field called other position to display in the UI. when the code runs and it gets to document.getElementById('otherPosition').hidden = false; I get the above error. why is it that the id is null?
HTML:
<div class="column" id="otherPosition" hidden>
<div style="padding-right: 10px;">
<label for="signeeContact.otherPosition">Other Position</label>
<input type="text" value="{{_contract.signeeContact.otherPosition::input}}" placeholder="Other Position" />
</div>
</div>
function:
_displayOtherPositionField(val) {
if (val != undefined) {
if (val == "28") {
document.getElementById('otherPosition').hidden = false;
}
}
}