<form id="ff" method="post">
<div>
<label for="name">
Name:</label>
<input class="easyui-validatebox" type="text" name="name" required="true" validtype="length[5,12]"></input>
</div>
<div>
<label for="email">
Email:</label>
<input class="easyui-validatebox" type="text" name="email" required="true" validtype="email" invalidMessage="邮箱格式错误"></input>
</div>
<div>
<label for="subject">
Subject:</label>
<input class="easyui-validatebox" type="text" name="subject" required="true" missingMessage="不能为空"></input>
</div>
<div>
<label for="message">
Message:</label>
<textarea name="message" style="height: 60px;"></textarea>
</div>
<div>
<input type="submit" value="Submit">
</div>
</form>
The validate rule is defined by using required and validType property, here are the rules already implemented: