JQuery Tooltip Example using JQuery UI Plugin

By Hardik Savani June 12, 2023 Category : jQuery

Jquery UI is a lots of collection of GUI widgets like datepicker, tab, timepicker, colorpicker etc. Jquery UI also provide tooltip GUI widget that way we can set text and display when hover on specific element.

Jquery UI tooltip through we can set information about element like if we set delete button but when user will mouseover then display text like "You can remove from here". So in this simple html example through you understand how to set tooltip using jquery ui.

Example:

<html lang="en">

<head>


<title>Jquery ui tooltip example</title>

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">

<script src="https://code.jquery.com/jquery-1.12.4.js"></script>

<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>


</head>

<body>


<div class="container">


<button title="Jquery UI Tooltip Example">See Toltip</button>


<script type="text/javascript">

$( function() {

$( document ).tooltip();

} );

</script>


</div>


</body>

</html>

I hope it can help you...

Shares