我使用我的web應用程序下面的驗證代碼jQuery的表單驗證
演示:http://www.position-relative.net/creation/formValidator/demos/demoValidators.html
有沒有辦法隱藏後10秒是彈出式的事情嗎?現在,當你提交其持續顯示....
這些都是用於ceating這種效果
http://www.position-relative.net/creation/formValidator/js/languages/jquery.validationEngine-en.js http://www.position-relative.net/creation/formValidator/js/jquery.validationEngine.js
<script>
jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#formID").validationEngine();
});
/**
*
* @param {jqObject} the field where the validation applies
* @param {Array[String]} validation rules for this field
* @param {int} rule index
* @param {Map} form options
* @return an error string if validation failed
*/
function checkHELLO(field, rules, i, options){
if (field.val() != "HELLO") {
// this allows to use i18 for the error msgs
return options.allrules.validate2fields.alertText;
}
}
</script>
請張貼一些代碼。 – Eli 2013-04-06 05:46:50
它太大我會發布那些代碼鏈接 – 2013-04-06 05:48:40
你可以隱藏所有formErrorContent類和線類,並做到這一點像 – 2013-04-06 06:21:11