2
I have a form on ASP.NET
with its content divided into Bootstrap Tabs. However, some of these fields are required (Required) or are type="number"
and "email"
, if they do not agree, sending the form will show a message from HTML5
asking to do the correct filling. However, as I am working with tabs, I can only see the messages if I am in the tab where it is being displayed.
Is there any way through JavaScript
open the corresponding tab when any of your fields is required or filled incorrectly?
To work better in all situations, I suggest decorating all tabs with errors with some detail in red and putting the focus on the first.
– user6476