我遇到了实例化问题或如何初始化验证引擎。我有正确的语言环境,但我不知道如何参加这一部分:
$(“#form.id”)。validationifyEngine(action or options);
当我将表单id作为“formID”时,它会从数据库中的表单中的数据值中停止get函数。 java脚本被覆盖。 html如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js" type="text/
javascript"></script>
<script src="validate/js/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script src="validate/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="validate/css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="css/template.css" type="text/css"/>
<script>
$(document).ready(function(){
$("#formID").validationEngine('attach');
});
</script>
<form>
<table>
<tr>
<td colspan="4"><div align="center"><strong>Applicant Information</strong></div></td>
</tr>
<tr>
<td><div align="right">Sur Name:</div></td>
<td><input type="text" class="validate[required] text-input" name="surname" id="surname" /></td>
<td><div align="right">First Name:</div></td>
<td><input type="text" class="validate[required] text-input" name="fname" id="fname" /></td>
</tr>
<tr>
<td><div align="right">Email Address:</div></td>
<td><input class="validate[required,custom[email]]" type="text" name="email" id="email" /></td>
<td><div align="right">Nursing school:</div></td>
<td><select name="nursingsch" id="nursingsch">
<option value="1" selected="selected">Graduate Free</option>
</select></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
</center>
</div>
</body>
</html>