Click here to Skip to main content
15,844,364 members
Please Sign up or sign in to vote.
3.25/5 (3 votes)
See more:
Hi Everyone,

I have a problem with JQuery tooltip in IE all versions, on click of a button i'm displaying some information in tooltip.

if href property of an anchor is null, giving the below tooltip.

My code :

$('#<%=btnPublicProflie.ClientID%>').click(function (e) {
                           var str = $(this).prop('href');
                           if (str == "") {
                               $(this).wrap("<span style='display:inline;' title='You need to be premium user. For more information please go to Settings.'></span>").tooltip();
                               return false;
                           else {
                               return true;

Updated 24-Sep-13 18:43pm
AmitGajjar 23-Sep-13 6:17am    
is this problem with IE only ?

1 solution

May be the problem is here

So try to use class instead of id.If your page has same id twice or more,IE won't work properly.

For more info check this:[^]

I hope this will help to you.
Share this answer
Rockstar_ 24-Sep-13 23:43pm    
I tried but not solved..

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