on the onClick event of a button, I'm trying to expose a form (login form) using the Jquery tools Expose (http://flowplayer.org/tools/expose.html) but it doesn't seem to be working ..
// execute your scripts when the DOM is ready. this is a good habit $(function() { var api1 = $("#login-area").expose({api:true, lazy:true, color: '#78c'}); });
Here is the part I'm trying to Expose
<div id="login-area">
<div class="ttl-area">
<h2 class="ttl-login"><span>Login</span></h2>
</div>
<!-- start login-area -->
<div class="login-area">
<div class="login-holder">
<form Id="loginForm" action="/raceday/Account/Login" method="post">
<fieldset>
<label for="UserName" id="UserName_Label">Email:</label><input id="UserName" name="UserName" type="text" value="" />
<label for="LoginPassword" id="LoginPassword_Label">Password:</label><input id="LoginPassword" name="LoginPassword" type="password" value="" />
<div class="row">
<a href="/raceday/Account/ForgotPassword">Forgot your password?</a>
</div><br />
<input class="lock btn" id="Login" name="Login" type="submit" value="Login" />
</fieldset>
</form>
</div>
<strong class="ttl">New user to RacedayWorld.com? Signup below:</strong>
<form action="/raceday/Account/Edit" method="get">
<input class="new btn" id="New_User" name="New_User" type="submit" value="New User" />
</form>
</div>
</div>
Here is the call to Expose the element
<input type="button" class="register btn" onclick="api1.load()" value="Sign up for this Event" />