(@_@;)我是程序猿,我编程,我快乐,知识改变命运,技术成就梦想   oh yeah!合作VX "w6668263" 联系Email:ye583025823@126.com

jQuery Easy Validate Plugin

http://www.jqueryeasyvalidate.co.uk/

To get started your going to need jQuery and a reference to the library in your page.

<script type="text/javascript" src="js/jquery.min.js"></script>

Then your going to need to link to the Easy Validate plugin. Make sure jQuery is reference first in your document.

<script type="text/javascript" src="js/jquery.easyValidate.min.js"></script>

Next, you need to reference the default style sheet for the plugin.

<link rel="stylesheet" type="text/css" href="styles/easyValidate.default.css" media="screen">

Finally you need to apply the field validations to each field by their **class** attribute. For more information on the validators please see documentation.

<input type="text" name="txt_name" class="required" value="">
<input type="text" name="txt_email" class="required email" value="">

Basic initialization

$(function(){
  $(’#yourForm’).easyValidate();
});

http://www.jqueryeasyvalidate.co.uk/

posted on 2013-04-27 09:22  一个草率的龙果果  阅读(251)  评论(0编辑  收藏  举报

导航