开发者

One form and two div sections validations

I am currently using the JavaScript val开发者_如何学Pythonidation found here http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

I have ONE form, but it is two-paged (handled by jQuery) separated by and

E.g code

<form class="myform" action="" id="myform" method="POST">
<div id="first">
<p>Name:<br><input type="text" class="textform2" name="fullname" />
<p>Email:<br><input type="text" class="textform2" name="email" />
<p><a id="next1" href="#"><img src="images/nextbutton.jpg" BORDER="0"></a>
</div>

<div id="second">
<p>Tel:<br><input type="text" class="textform2" name="tel" />
<p><input type="image" src="images/submit.jpg" BORDER="0" value="submit" />
</div>
</form>

How do I validate the fields in upon clicking and only after it is validated, proceeds to and validate the fields there and finally the SUBMIT button?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜