Tabindex Example

I'm sorry, that is not a properly formatted ZIP code. ZIP must be 5 or 9 digits. Please try again.

 

 


 

Example Code

<div id="invalidzip">I'm sorry, that is not a properly formatted ZIP code. ZIP must be 5 or 9 digits. Please <a href="#" onclick="setfocus('zip'); return false">try again</a>.</div>

<p><label for="zip">Enter your ZIP code</label> <input id="zip" onblur="checkzip(this.value);"></p>

CSS

#invalidzip {
color:#f22;
border:1px dashed #f22;
padding:3px;
margin-top:10px;
outline:0;
font-size:70%;
display:none;
font-size: 1.25em;
}