title: How can we show error message on form validation on joomla 2.5 in the same way as email validation with a tooltip like alert?
body: <p>How can we show error message on form validation on joomla 2.5 in the same way as email validation etc? with the tool tip? </p>
  
  <p>I have included </p>
  
  <pre><code>JHtml::_('behavior.formvalidation');
  JHtml::_('behavior.tooltip');
  </code></pre>
  
  <p>and I have a script </p>
  
  <pre><code>$(document).ready(function () {
        var msg = new Array();
                  document.formvalidator.setHandler('phone', function (value) {  return (value != '123'); }     );
          });
  </code></pre>
  
  <p>and My input filed is like </p>
  
  <pre><code>&lt;input name="jform[contact_phone]" type="text" id="jform_contact_phone"  class='validate-phone'/&gt;
  </code></pre>
  
  <p>I am getting the tooltip for email field validation and required filed validation, but I can not include numeric validation and I could not implement a tooltip message for my custom phone number field.</p>
  
  <p>I am using joomla 2.5 </p>