[英]How to validate a phone number doesn't contain any other characters including - and . using javascript in a html page, shouldnt be less than 10 digits
這是 Adobe 經典廣告系列。 type="text" maxlength="10" pattern="[0-9]{10}" 它只允許 10 位數字,但接受-和. 我希望用戶只輸入 10 個而不是更少或更多,並且只接受數字。 請幫忙。 ...