Hi I'm using a form on my website and the required attribute seems not working on mobile it works perfectly on my browser. Does anyone have an issue with jquery, javascript or node package ?
<form action="myaction" method = "post" enctype="multipart/form-data">
<input type="text" id="name" pattern= .{2,} required />
<input type="file" id="user_picture" required />
<input type="submit" />
</form>
On mobile even if I fill any fields, it submit but nothing is add to my database. I just want to find a way to print somme error message.