Illep Illep - 1 year ago 83
HTML Question

Hide HTML link button on page load

I want to hide the button

. How can I do so. My code is as follows and it doesn't hide the button when the page loads.


<a class='btn btn-primary' id="button1">my buttopn</a>


<script type="text/javascript">



Answer Source

You need to add $(document).ready for load.


<script src=""></script>
<a href="#" id="button1">Button1</a>
<a href="#" id="button2">Button2</a>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download