Jquery工具提示,IE中的问题 [英] Jquery tooltip, problem in IE

查看:62
本文介绍了Jquery工具提示,IE中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在IE所有版本的JQuery工具提示都有问题,点击按钮我在工具提示中显示一些信息。



如果锚的href属性为null,则给出以下工具提示。



我的代码:< br $>


 $('  #<%= btnPublicProflie.ClientID%>')。点击(函数(e){
调试器;
var str = $( this )。prop(' href' );
if (str == ){
$( this )。wrap( < span style ='display:inline;'title ='您需要是高级用户。有关详细信息,请转到设置。'>< / span>)。tooltip();
返回 false ;
}
else {
$( this )。removeAttr( ' title');
return true ;
}


});

解决方案

' #<%= btnPublicProflie.ClientID%>')。click(function(e){
debugger ;
var str =


this ) .prop(' href');
if (str == ){


< blockquote>( this )。wrap( < span style ='display:inline;'title ='您需要是高级用户。有关详细信息,请转到设置。'>< / span>)。tooltip();
返回 false ;
}
其他 {


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) {
                           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;
                           }


                       });

解决方案

('#<%=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 {


这篇关于Jquery工具提示,IE中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆