title: alert and autorefresh text box if length is 4
body: <p>I have one <code>text box</code> and i am entering data on that <code>text box</code>, what i want to do is: if i will enter <code>4 characters</code> and will <code>skip that text box by pressing TAB key</code> then one alert will come as<code>"data should be more than 4 characters"</code> and then text box will be <code>auto refreshed</code>. If data entered is more than 4 characters then no alert will come, I was trying by onkeyup event but some where i am doing wrong. Any help please</p>