合作联系微信: w6668263      合作联系电话:177-9238-7426     

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  草率的龙果果  阅读(262)  评论(0)    收藏  举报

导航