qTip2 jquery with asp.net textbox

前端 未结 2 1668
挽巷
挽巷 2021-01-17 07:59

How can I implement jquery plugin qTip2 http://craigsworks.com/projects/qtip2/ with asp.net textbox? (elegant tooltip on mouseover)



        
相关标签:
2条回答
  • 2021-01-17 08:36

    You should wait for document ready:

    $(function () { //shorthand for $(document).ready(function(){...});
        $('tbLoginName').qtip({
            content: 'This is an active list element',
            show: 'mouseover',
            hide: 'mouseout'
        })
    });
    
    0 讨论(0)
  • 2021-01-17 08:42

    Please use the below code for asp.net Textbox element.

    $(function () {
        $("[id$='_txtTest']").tooltip();
    });
    
    <asp:TextBox ID="txtTest" runat="server" ToolTip="TOOLTIP"></asp:TextBox>
    

    Definitely it will work.

    0 讨论(0)
提交回复
热议问题