Hi,
Does anyone know how to make a specific button visible/invisible using javascript?
I think it has something to do with CSS…..
Thanks !
Mike
[code=html]<input style="visibility:hidden" tyep="button" value="you cannot see me">[/code]
[code=html]<input id="myButton" style="visibility:visible" type="button" value="now you see me..." onclick="hide()"> <script> function hide() { document.getElementById('myButton').style.visibility="hidden"; } </script>[/code]
[code=html]<input type="button" onclick="this.style.visibility='hidden'" value="now you see me..">[/code]
><script> >function hide() >{ >document.getElementById('myButton').style.visibility="hidden"; >} ></script>
[CODE]<script> function show() { document.getElementById('myButton').style.visibility="visible"; } </script>[/CODE]
Help @jiser spread the word by sharing this article on Twitter...