У меня была та же проблема, и я решаю ее следующим образом:
<script>
$('#submitButton').click(function () {
$('input:invalid').each(function () {
// Find the tab-pane that this element is inside, and get the id
var $closest = $(this).closest('.tab-pane');
var id = $closest.attr('id');
// Find the link that corresponds to the pane and have it show
$('.nav a[href="#' + id + '"]').tab('show');
// Only want to do it once
return false;
});
});
</script>
Когда вы нажимаете кнопку отправки (вам нужно ID), она ищет недопустимые поля ввода, f2] id и показать его.
Надеюсь, вы поможете!