<form> <input pattern="Зелёный" required> <input type="submit" value="Отправить"> </form> <style> form:invalid input[type="submit"] { display: none; } </style>