Hey all,
I've got the following code:
- <img id="emailme" src="images/email.png" />
- <div id="emailAddress" style="height:50px;">
- <form>
- <INPUT name="email" type="text" id="email" style="height:25px;">
-
- <input type="submit" name="button" id="button" value="Send" style="height:40px;"/>
- </form>
- </div>
- <script>
- $("#emailme").click(function () {
- $("#emailAddress").slideToggle("slow");
- });
- </script>
- </div>
The problem is, that when I click on the submit button, the #emailAddress div closes immediately. I'm not sure why this is happening.
Thanks
Dan