I get idea from :
Can you check an object's CSS display with JavaScript?
Now look to my code below :
HTML :
<div style="display: none">
<input type="text" id="myInput" value="5">
</div>
Javascript :
console.log(document.getElementById('myInput').value);
console.log(document.getElementById('myInput').style.display);
Result in my computer is show nothing on my browser console.
My problem :
I need to know the parent of input type text style. cause if the parent style is none make the input type text show nothing when i try to get value of input type text. So the main question is how to get parent style WITHOUT add new id/class/name in div?