Click here to Skip to main content
15,919,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
get tool tip validation on form submit in jquery
i got error
Error:Object [object Object] has no method 'tooltip'
below code
C#
function validateForm()

   {
       alert(' dsgsd');
       $('#FirstName').tooltip("destroy") // Destroy any pre-existing tooltip so we can repopulate with new tooltip content
                  .data("title", 'dgfg')
                  .addClass("error")
                  .tooltip();

       $('#FirstName').attr('tooltipText', 'enter user name')

       return false;
       //$("#FirstName").attr("input-validation-error").addClass("input-validation-error");
       //$('#FirstName').append("<span class='text-danger field-validation-error' data-valmsg-for='FirstName' data-valmsg-replace='true'><span for='Password' style='color:red '>Group alreday Exists</span></span>");

   }
Posted

1 solution

check js file that you have used to tooltip, it doen't contain funcion tooltip in it.
Check whole code from references.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900