I can't work out this Javascript for the life of me. I need help with the following code, here is the snippet:
<div class="container">
<input type="submit" class="clicktoshow" />
<form class="hidden">
</form>
</div>
I am going to be using an array in PHP to display multiple containers using the same code so I want to avoid id's.
Basically the form is hidden and I want it to show when submit is clicked, there will be alot of container divs, so I don't want the click to show ALL the forms, just the one aligned with the input / in its parent element.
Is this possible?
Any help please :|?