<form name="form">
<label for="input">name</label>
<input name="input"></input>
<span id="sp1">name is required</span>
<span id="sp2">max length is 10</span>
</form>
How to control #sp1 to hide when not clicked, the format is correct to hide
sp2 will only be displayed if it exceeds the length
Anguarljs form validation reference document:
http://www.cnblogs.com/rohelm...