Click here to Skip to main content
15,881,204 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 :

C#
$('#<%=btnPublicProflie.ClientID%>').click(function (e) {
                           debugger;
                           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 {
                               $(this).removeAttr('title');
                               return true;
                           }


                       });
Posted
Updated 24-Sep-13 17:43pm
v2
Comments
AmitGajjar 23-Sep-13 6:17am    
is this problem with IE only ?

1 solution

May be the problem is here
$('#<%=btnPublicProflie.ClientID%>')


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:

http://stackoverflow.com/questions/12696541/jquery-custom-tooltip-not-ui-not-working-in-ie7-only[^]

I hope this will help to you.
 
Share this answer
 
Comments
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