javascript通用表单的验证函数

0 人评论
  作者: Avrit     浏览:4226
*--------------- 客户端表单通用验证CheckForm(oForm) -----------------
 * 功能:通用验证所有的表单元素.
 * 使用:
 *    <form name="form1" onsubmit="return CheckForm(this)">
 *    <input type="text" name="id" check="^/S+$" warning="id不能为空,且不能含有空格">
 *    <input type="submit">

阅读全文>>