0
我想寫一個JavaScript驗證迎合使用getElementById()和循環方法,提交後它會檢查空白內容的頁面上的文本框發佈到後端代碼處理信息。任何想法?javascript驗證的文本框
<html><body>
<input type="image" src="{{ MEDIA_URL }}images/placebid.png" value="Place Bid" id="iteration_submit" name="iteration_submit" onclick="submitform()">
</body></html>
<script>
function submitform(){
//validation code for textboxes here; if false, do not carry out the submit -->
document.forms[0].submit();
}
哪裏是文本框? – kjy112 2011-02-12 01:59:36
怎麼樣jQuery和jQuery驗證? http://bassistance.de/jquery-plugins/jquery-plugin-validation/ – mdrg 2011-02-12 03:02:13