javascript

  • Stack Overflow works best with JavaScript enabled
  • (Note – the form submission will happen through AngularJS no matter what)
  • controller(‘sampleFormController’, function ($scope, $log) { angular.extend($scope, { model: {}, save: function (form) { if (form.$invalid) { $log.info(‘The form is invalid’); return; } $log.info(‘Form is valid, save successful’); } }); });
  • Join the Stack Overflow Community
  • PS – the Stack overflow question comes really close.

Is there a way to fix this? Or is there any other way to do form validation using AngularJS before submission? (Note – the form submission will happen through AngularJS no matter what)

@askbootstrap: ¿?—Form validation with Tooltip suggestion in AngularJS

I have a small form written using AngularJS , Bootstrap and this plugin for Angular called XTForm

However, the tooltips that come in their XTForm reference page do not appear.

Is there a way to fix this? Or is there any other way to do form validation using AngularJS before submission? (Note – the form submission will happen through AngularJS no matter what)

PS – This Stack overflow question comes really close. But I want the tooltip to hover on field of error when pressing submit. This shows it when I hover a particular span

javascript

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.