I'm working on an HTML page where a hidden div is supposed to become visible when a button is clicked. The code snippet I have is:
$('#display').click(function(){
$('#itemList').removeClass('hide');
...
})
Now, on another page, there's a link that takes the user back to the first page. When this link is clicked, the element with id='itemList'
should also become visible. Here's the code for that link:
<a href='firstHTML.php'> View items</a>
I'm not quite sure what else I need to add to ensure that the other page loads with the previously hidden element now visible. Any suggestions or help would be greatly appreciated.