I need some help. Code below doesn't work just like i needed.
What I want here: With the help of JavaScript I want to hide or make a table column invisible which has id myid.
$(document).ready(function(){
document.getElementById( 'myid' ).style.display = 'none';
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table width="200" border="1">
<tr>
<td id="myid">x</td>
<td> </td>
<td> </td>
</tr>
</table>
thanks in advance!