I've been struggling to get a picture to trigger a jQuery Show function. Despite trying various methods, I haven't been successful. Unfortunately, the jQuery documentation didn't provide much help in my case.
Below is the jQuery code straight from W3C. This should be all I need for what I'm currently attempting to achieve.
$(document).ready(function(){
$("#regi").click(function(){
$("#reg").show();
});
});
Here is the HTML content that I want to display, initially set with visibility:hidden;
<div id="reg">
<image src="../media/RegPage.png">
<input type="text" name="usernameReg" value="email" STYLE="position: fixed; top: 175px; background-color: rgb(187,187,187); font-family: 'VT323', cursive;//#9cf;"/>
<input type="password" name="pwrdReg" value="pass" STYLE="position: fixed; top: 195px; background-color: rgb(187,187,187); font-family: 'VT323', cursive;"/>
<input type="password" name="VpwrdReg" value="pass" STYLE="position: fixed; top: 195px; background-color: rgb(187,187,187); font-family: 'VT323', cursive;"/>
</div>
I attempted using the image as a button and changing the image itself, but without any success. Any assistance would be greatly appreciated. Ideally, I want clicking this image to trigger the jQuery show event.
<image id="show" src="../media/Register.png" ></image>
Thank you