Qtip和<select>不显示标题</select>

时间:2014-06-26 17:14:58

标签: qtip2

我有以下bootstrap和knockout select:

<select title="Select an outbound header column to which the value on the right will map to.  Selecing default will allow you to define a constant value to populate the outbound feed with." 
                                    name="attributeSelect" class="btn btn-default" data-bind="options: $root.ColumnDropdown,
    optionsText: 'PDBColumnName',
    optionsValue: 'PDBColumnId',
    value: SelectedColumn
    "></select>

当鼠标悬停在标题上时显示正确但是以下qtip没有正确格式化

$('select[title]').qtip();

我在复选框的页面上有这个完全相同的实现,是否有一些东西需要用于选择?

1 个答案:

答案 0 :(得分:1)

我可能会使用data-qtip-title而且:

$('[data-quip-title]').qtip({ // get elements with a non-blank data-tooltip attr.
    content: {
        attr: 'data-qtip-title' // look inside this attribute for its content
    }
})

http://jsfiddle.net/isherwood/7vpP3/2

http://qtip2.com/guides