Hello people, I ask for help!
It is necessary to set pattern in input 'e.
input should not allow input only zeros:
0; 000
input can allow the input of characters and numbers:
abc0; 0abv; 123abv; abv0123
Hello people, I ask for help!
It is necessary to set pattern in input 'e.
input should not allow input only zeros:
0; 000
input can allow the input of characters and numbers:
abc0; 0abv; 123abv; abv0123
Here is a solution:
<form name="test" method="get" action="#"> <p><b>Ваше имя:</b><br> <input type="text" size="40" pattern=".*[1-9A-Za-zА-Яа-яЁё].*" placeholder="Минимум 1 буква или цифра от 1 до 9" required> </p> <input type="submit" value="Отправить"> </form> If only Russian and Latin letters and numbers are allowed, then this option:
<form name="test" method="get" action="#"> <p><b>Ваше имя:</b><br> <input type="text" size="40" pattern="(?=.*[1-9A-Za-zА-Яа-яЁё])[\dA-Za-zА-Яа-яЁё]+" placeholder="Только буквы и цифры" required> </p> <input type="submit" value="Отправить"> </form> still so advised me, shortly :)
pattern="(?!0+$)[\D0-9]+" 0.00 . - Visman[\D0-9] can be replaced by a [\D0-9] . - Wiktor StribiżewSource: https://ru.stackoverflow.com/questions/542959/
All Articles
/^0+$/- andy.37