title: Using unobtrusive validation in ASP.NET MVC 3, how can I take action when a form is invalid?
body: <p>I have a page with jQuery UI tabs on it, and a single required field on the first tab.  Validation works, and the validation message appears next to the field if the user hasn't entered a value.  However, if the user is not on the first tab, it isn't obvious that the field is invalid.</p>
  
  <p>In this case, I would like to show the first tab, but I'm not sure how to go about registering a callback for an 'invalid' event, if there is one.</p>
  
  <p>I have also considered showing a validation summary above the tabs, which would be visible regardless of the tab the user is on, but my preference would be to take the user to the field.</p>
  
  <p>I've tried looking through the jquery.validate.unobtrusive.js file, and it seems to extend jquery.validate.js.  Looking at the documentation for jquery.validate, I see there is an <code>invalidHandler</code> option that can be passed to the <a href="http://docs.jquery.com/Plugins/Validation/validate#options" rel="nofollow">validate method</a>, but I don't know how to make use of this since that method is called by jquery.validation.unobtrusive.</p>
  
  <p>I'm feeling a bit lost here, so any help would be appreciated!</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I never figured out the answer, but did come up with a workaround, which I posted below.  Still, I hope someone answers with a better way to do this.</p>