How to test input value for null or zero with jQuery

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-04T19:32:16Z Indexed on 2010/05/04 19:38 UTC
Read the original article Hit count: 247

Filed under:

I need to keep the focus on the text input when the user moves to the next input without putting something in the previous one. In short, if it is null (left blank) or not valid, how do I keep the focus on that input until the conditions are satisfied?

© Stack Overflow or respective owner

Related posts about jQuery