I'm validating data entered in a form using HTML5. Is there a way of breaking the string passed as an argument of method setCustomValidity()?
I've tried different combinations of a carriage return and line feed, non of them working. They're not getting printed, however, they're not causing any result either.
I've edited my text and made it shorter but I wonder if there's a way to do this?
<input type="text" id="name" class="form-control" placeholder="Name" required pattern="[Ll].*" oninvalid="this.setCustomValidity('Put a valid name! \n Name should contain at least one uppercase and one lowercase letter.')"
oninput="this.setCustomValidity('')">