使用asp.net文本框的qTip2 jquery
如何使用asp.net文本框实现jquery插件qTip2 http://craigsworks.com/projects/qtip2/ ? (鼠标hover时优雅的工具提示)
$('tbLoginName').qtip({ content: 'This is an active list element', show: 'mouseover', hide: 'mouseout' })
这是我的代码,但它不起作用。 我做错了什么?
问候
你应该等待文件准备好了:
$(function () { //shorthand for $(document).ready(function(){...}); $('tbLoginName').qtip({ content: 'This is an active list element', show: 'mouseover', hide: 'mouseout' }) });
请使用以下代码为asp.net Textbox元素。
$(function () { $("[id$='_txtTest']").tooltip(); });
肯定会有用。