jQuery - Widget Tooltip


The Widget Tooltip function can be used with widgets in JqueryUI.Tooltip is used to show the tips.A sample example of tooltip as shown below.


Here is the simple syntax to use Tooltip −

$( document ).tooltip();


Following is a simple example showing the usage of Tooltip −

<!doctype html>
<html lang = "en">
      <meta charset = "utf-8">
      <title>jQuery UI Tooltip - Default functionality</title>
      <link rel = "stylesheet" 
         href = "//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src = "//code.jquery.com/jquery-1.10.2.js">
      <script src = "//code.jquery.com/ui/1.11.4/jquery-ui.js">
         $(function() {
            $( document ).tooltip();
         label {
            display: inline-block;
            width: 15em;

      <p><a href = "#" title = "Tutorials point india Pvt ltd">
         Tutorials point</a> Free tutorials and reference manuals with
         examples for Concordion, 5G, JBPM5, SAP, Agile, SVG, Web Icons, KDB+,
         Web Analytics, Google Maps, Joomla, Self</p>
      <p><a href = "https://www.tutorialspoint.com/jquery/index.htm"
         title = "J Query tutorials"> J Query</a> is a fast and 
         concise JavaScript library created by John Resig in 2006. 
         jQuery simplifies HTML document traversing, event handling,  
         animating, and Ajax interactions for Rapid Web Development.</p>
      <p><label for = "age">your tutorials details</label>
         <input id = "age" title = "Please enter your tutorial name. 
         We will search in our data base"></p>

This will produce following result −

Kickstart Your Career

Get certified by completing the course

Get Started