I have a div which is displaying none in css(display:none;) but when I use the jquery .show() method it only flashes on the page for a second. here is my html code
<center><div style="margin-top:100px;margin-bottom:100px;border:1px solid black;">
<div class="logIn" id="login">
<form action="Login.php" method="post" name="login">
<h4> Log into your Irokko Account </h4><br/>
Username:<br/>
<input type="text" name="username"><br/><br/>
Password:<br/>
<input type="password" name="password"><br/><br/>
<input type="submit" value="Log In" name="login"> <input id = "create" type="submit" name="account" value="Create Account"> </form>
<a href="#ForgotPassword" style="font-size:12px; color:blue;text-decoration:underline">Forgot Password</a> <br><br/>
<div id="ForgotPassword" class="modalDialog">
<div>
<a href="Login.php" title="Close" class="close">X</a>
<h2>Retrieve Password</h2>
<form action="Login.php" method="post" name="login">
<p>Please enter your email address to retrieve your password.</p><br/><br/>
<input type="email" name="email" size="65"><br/><br/>
<input type="submit" value="Send" ><br><br>
</form>
</div>
</div>
</div><br><br>
<div id="signup" class="hide">
<form action="login.php" method="post" name="signup" onSubmit="return validatesignup();">
Confirm Password:<br/>
<input type="password" name="confirmpassword" size="40"><br/><br/>
Account Type:<br/>
<select name="accounttype" class="width">
<option></option>
<option>Advertiser</option>
<option>Publisher</option>
</select><br/><br/>
Company Name:<br/>
<input type="text" name="companyname" size="40"><br/><br/>
Email address:<br/>
<input type="email" name="email" size="40"><br/><br/>
Country:<br/>
<input type="text" name="country" size="40"><br/><br/>
<input type="submit" name="createaccount" value="Create Account"><br><br>
And here is my css code
.hide{
display:none;
}
And below is the jquery code
$(document).ready(function(){
$(".hide").hide();
$("#create").click(function(){
$(".hide").show();
});
});