如何显示下拉值的动态工具提示? [英] How Can I Show Dynamic Tool Tip For Dropdown Values?

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

问题描述

使用bootsrtap创建网页。

我添加了两个下拉菜单。下拉的值将动态生成。所以我想将该值显示为工具提示。我的下拉值非常冗长。所以我不想增加下拉的大小。我想显示那些长值的工具提示。



jquery am using ,

Am creating web page using bootsrtap.
I have added two drop downs. Values for drop downs will generate dynamically.So i want to show that value as tooltip. my drop down values are very lengthy.So i dont want to increase the size of drop down.I want to show tool tip for that long values.

jquery am using,

$(document).ready(function () {
    $("a").tooltip({

        placement: 'top'

    });
});





data-original-title =Abcdefghiklhuhsfjkhskd目前正在这样给出。但是我想动态地给出。

+工具提示应该显示完整的值。下拉不应该按照值的长度延伸。



data-original-title="Abcdefghiklhuhsfjkhskd" currently am giving like this. But i want to give dynamically.
+Tool tip should show full value.Drop down should not extend as per the length of the value.

推荐答案

(document).ready(function(){
(document).ready(function () {


)。工具提示({

展示位置:' top'

});
});
("a").tooltip({ placement: 'top' }); });





data-original-title = Abcdefghiklhuhsfjkhskd目前正在这样给予。但是我想动态地给出。

+工具提示应该显示完整的值。下拉不应该按照值的长度延伸。



data-original-title="Abcdefghiklhuhsfjkhskd" currently am giving like this. But i want to give dynamically.
+Tool tip should show full value.Drop down should not extend as per the length of the value.


你好试试这个以下链接





下拉列表的工具提示 [ ^ ]
Hi try this below Link


Tool tip for drop down list[^]


这篇关于如何显示下拉值的动态工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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