How do I do a live search only once the user has typed in 4 numbers into the input?
It basically needs to contact the php page using $ajax which I already have.
I thought it might be an input.length == 4 but I tried it and failed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use regular expressions to check if the value of the input consists exactly of four digits.
where
#testis:HERE is the code.