I am trying to figure out how to get my jquery validation working so that if a value is less than the desired amount it will display the error code. I can't figure out how to make this work correctly. It requires at least one character to be input but I want it to be at least 4.
Any help appreciated
My validation code looks like
if($('#firstname').val() < 3){
$('#firstname').parent().parent().find('.form-error').html("First Name is Required");
err++;
}