question: How to verify the form immediately after the input, rather than after the submission of verification so inconvenient (online search is either ambiguous, or incomplete ...) )
method: In view of this, small, Shinshanchi, will be its code completion, plus a little of my personal understanding (note) on the above, only for the later less detours, but also please all the way hero criticism. (Forwarding please note author, xiexie) ———— table version, will continue to have the jquery version ...
If it helps you, ヾ (≧o≦) AW ~
Screenshots:
Code:
CSS style:
input:focus,textarea:focus{
border:1px solid #f00;
Background: #fcc;
}
textarea{
width:230px;
height:50px;
}
Body
{
font-size:15px;
/* Font style * *
font-family:microsoft Yahei
}
Select option{
font-size:10px;
Font-family:microsoft Yahei;
}
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.