Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

the below code shows tooltip on a link.

XML
<input type="text" title="input" />
<a href="#" title="anchor">anchor</a>

<script>
  $(function()
  {

    $( document ).tooltip({

    items: 'a'
    });

  });

</script>


my doubt is how to show tooltip only over textbox?

Thanks..
Posted

 
Share this answer
 
Comments
Thanks7872 27-Aug-13 7:17am    
Looks good. Upvoted.
hasbina 27-Aug-13 7:22am    
@Code-Hunt

in my project iam using

$(function() { $( document ).tooltip()

});

But it shows tooltip for all items.i want to show tooltip only for textbox using the above code

Thanks
Got it...


use the code as below


C#
$(function()
  {

    $( document ).tooltip({

    items: 'input';
    });

  });
 
Share this answer
 
v2

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