How can I do it on JQuery? When I click hide
, the element will be hidden, same goes for show
, the element will be shown. How am I going to do it? Thanks!
<form method="POST">
<button type="submit" name="hidden" >Hide</button>
<button type="submit" name="submit" >Show</button>
</form>
<?php
if (isset($_POST['hidden']) == true){
echo '*hidden*';
} else if ($_POST['']) {
echo 'shown';
}
?>