一个检测表单数据的JavaScript实例,很简单,很实用,感兴趣的朋友可以看看
<div> <label for="secondfield">Second Field:</label><br /> <input id="secondfield" name = "secondfield" type = "text" /> @H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_18@ <div> <label for="thirdfield">Third Field(numeric):</label><br /> <input id="thirdfield" name = "thirdfield" type = "text" /> @H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_18@ <div> <label for="fourthfield">Fourth Field:</label><br /> <input id="fourthfield" name = "fourthfield" type = "text" /> @H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_18@ <input type="submit" value = "Send Data" />