My HTML format looks like this :
<body>
<table>
<tbody>
<tr>
<td></td>
<td><span><input type="button"/></span></td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td></td>
<td><span><input type="button"/></span></td>
</tr>
</tbody>
</table>
</body>
I want to hide all buttons without using class and ID. I've tried everything to hide the buttons but its not working.
What I've tried is something like this :
document.getElementsByTagName('input').style.visibility = "hidden";
and
input_list = document.getElementsByTagName('input');
for (element in input_list) {
element.style.visibility = "hidden";
}