[Solved] how to hide a tag? [closed]

This is the best I can do without knowing your code: HTML: <h4 id=”myH4″>Hello World</h4> Javascript: document.getElementById(“myH4″).style.display=”none”; or document.getElementById(“myH4″).style.visibility=”hidden”; 7 solved how to hide a tag? [closed]

[Solved] How do I show a div with a form only if a button is clicked?

You can use the onClick event to do that: Working Example HTML: <button id=”some_id”>Hide div</button> <form id=”some_form”> <form> javascript: <script type=”text/javascript”> var theButton = document.getElementById(‘some_id’); theButton.onclick = function() { document.getElementById(‘some_form’).style.visibility=’hidden’; } </script> 2 solved How do I show a div with a form only if a button is clicked?

[Solved] Hide registration and login buttons when a user logged in? [closed]

<div id=’nav’> <?php if(is_logged_in()) { if(is_admin()) { echo anchor(‘admin’,’Admin Dashboard’); } echo anchor(‘user/logout’,’Logout’); echo anchor(‘users/profile’,’Profile’ . ‘&nbsp;[‘ . $_SESSION[‘user_name’] . ‘]’); } else { echo anchor(‘user/login’,’Login’); echo anchor(‘user/signup’,’Signup’); } echo ‘&nbsp;’ . anchor(base_url(),’Home’); ?> </div> 1 solved Hide registration and login buttons when a user logged in? [closed]