Este widget nos permite reemplazar los tooltips usados por defecto, pudiendo tomar la configuración relativa al theme usado.
Algunas de sus propiedades:
- content: permite definir el texto del tooltip.
- disabled: si su valor es 'true' se desactiva el tooltip.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>InformaticaPC | Tooltip con JQuery UI</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
body { background-color:lightyellow;font-family:Arial;font-size:10pt; }
</style>
<!-- Observa que agregamos también la librería JQuery UI -->
<script type="text/javascript" src="../lib/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../lib/jquery-ui-1.10.1.custom.min.js"></script>
<!-- Agregamos también el archivo CSS del theme que usemos -->
<link type="text/css" rel="stylesheet" href="../lib/css/smoothness/jquery-ui-1.10.1.custom.css" />
<script type="text/javascript">
$(document).ready(function()
{
$("#parrafo").tooltip();
$("#boton").tooltip();
$("#enlace").tooltip();
});
</script>
</head>
<body>
<p id="parrafo" title="Información sobre el párrafo">Esto es un párrafo.</p>
<input type="button" id="boton" value="Esto es un botón" title="Información sobre el botón" /><p />
<a id="e" href="#" title="Información sobre el enlace">Esto es un enlace</a>
</body>
</html>
Como puedes observar, para definir un tooltip basta con hacer referencia a un elemento HTML y llamar al método tooltip().
Consulta los siguientes enlaces a la documentación y ejemplos sobre este widget para obtener más información.

Vea también: [ Tooltip ] - [ Tooltip (ejemplo) ]