jquery - Resetting textfield by clicking an image -


i have image if clicked, other div opacity 0 using jquery. want if image clicked, reset textfield.

here code.

<div id=loginexit>     <img class='loginexit' src='site_images/close.png'> </div> <div id=loginform>     <div class=formc>         <form name='loginform' action='loginc.php' method='post'>             <font face='verdana' color=#d6d5d0 size=2>                 email address: &nbsp;                 <input type=text name='eadd' id=eaddtf style='width:150px;height:20px;border:1px solid #37749e;margin-bottom:5px;'>                <br>                password: &nbsp;                <input type=password name='pass' style='width:150px;height:20px;border:1px solid #37749e;margin-bottom:5px;'>                <br>                <input type=submit value='login' class='login2' name=submit style='cursor: pointer;text-decoration:none;font-size:14px; background-color:#46ae18; border:2px solid #58e01b;width:100px;'>             </font>         </form>     </div>     <div class=clear></div> </div>   $('.loginexit').click(function($event){     $('#eaddtf').val('');     $('#login').animate({opacity:0.0},'slow')     $('#login').animate({left:-100000},'fast') }); 

i want reset textfield of input#eaddtf. how can i?

the reset works me, forgot put id in login button

<input type=submit value='login' class='login2' id="login" name=submit style='cursor: pointer;text-decoration:none;font-size:14px; background-color:#46ae18; border:2px solid #58e01b;width:100px;'> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -