I want to check valid phone number automatically after each type in an input element with javascript For example: I will enter each number until it is valid and enough 10 numbers, then it will return true. this thing is like to sign up in shopee.vn. Help me out plz