if (inp.val().length > 0) {
// do something
}
if you want anything more complicated, consider regex or use the validation plugin which takes care of this for you
if (inp.val().length > 0) {
// do something
}
if you want anything more complicated, consider regex or use the validation plugin which takes care of this for you