On the code do not swear, hastily sketched. Actually, it is necessary that when the text is entered into the field, the placeholder is blocked and not returned to the input. help me please. https://jsfiddle.net/h7jmLuyz/
<div class="form-group"> <input type="text" class="form-control" name="name" id="inputName" required> <label for="inputName" class=" name-placeholder"><span class="placeholder">Имя</span></label> </div> <div class="form-group"> <input type="tel" class="form-control" name="phone" required> <label for="inputName" class=" phone-placeholder"><span class="placeholder">Телефон</span></label> </div>
:invalid. But this is all garbage in vegetable oil. And on:emptyfields are not checked - Vasily Barbashev