title: How to display jqueryui validation error message in jqueryui tooltip
body: <p>I am following <a href="http://raykuhnell.com/2013/05/06/asp-net-mvc-validation-messages-using-jquery-ui-tooltips/" rel="nofollow">this tutorial</a> to display validation errors in jqueryui tooltip. The validation works fine, but I am unable to display the correct error messages as the correct attributes can not be conditionally linked to the tooltip, as per my example below:</p>
  
  <pre><code>$(document).tooltip({
          items: ".input-validation-error",
          content: function () {
  
              //debugger;
              return $(this).attr('data-val-required');
          }
      });
  </code></pre>
  
  <p>Only the required field error message will be displayed by this logic, is there a way to extend this logic by tapping into the validation results (for remote and compare type validations), or have I hit a dead-end?</p>