i need to validate a phone number field in my form my conditions are numbers may be 8 digits or 10 digits other than that should be give an notice the way i try is like this is this ok ??
<input class="form-control" name="phone_no" id="phone_no" placeholder="Enter a Phone Number" type="tel" title='Phone Number(Format:04xxxxxxx)' size="10" min="8" max="10" required>
or how use the patter attribute to achieve this??pattern='\d{3}\d{4}\d{4}'
like this i used but i need to check whether its between 8 and 10 less than 8 and more than 10 should give an error or notice!