jquery - How can i process this form alone -
this question exact duplicate of:
i have function on html form, form script there
<script type="text/javascript"> var conf = { isvip:false, ismem:false }; </script>
and here the button, button process 2 form in html, here button.
<li class="current"> <a href="#" onclick="submitaction('process.php')">免费邮箱登录</a> </li> <li> <a href="#" onclick="submitaction('process.php')"><span class="vip"></span>vipsubmit</a> </li> <a href="#" class="loginbtn"
here form
<form name="vip_login" method="post" action="process.php"> <input tabindex="1" id="vipname" type="text" class="username" name="username" value=""/><span class="vipdomain">@name.com</span> <input tabindex="2" id="vippassword" type="password" class="password" name="password" value=""/>
my question is, how make btn process form alone , send data external process.php function.
first, give form id
:
<form id="vip_login" method="post" action="process.php">
next, download jquery if don't have it, , setup onclick
of href
this:
<a href='#' class='loginbtn' onclick="$('#vip_login').submit();" ...
and force submit of form.
Comments
Post a Comment