我有由jquery填充的gridview。下面是我的代码部分那给上述错误:
var codes = $(this).find("Code").text();
$("td", row).eq(6).html($(this).find("oTotal").text());
if ($(this).find("Stock").text() == 'Y') {
$("td", row).eq(7).html('<a href="#" class="tooltip" title="This is my divs tooltip message!" id="' + codes + '" style="text-decoration:none">Y</a>');
$('#' + codes).live('click', function() {
$('#' + codes).tooltip();
});
}
else {
$("td", row).eq(7).html($(this).find("Stock").text());
}
我正在上$)错误(“#” +代码).tooltip(;我有jquery.ui/1.8.22和jquery/1.8.3。
你究竟需要一个..? –
你确定你包含工具提示组件在你的jQuery UI的装载? –
是的,我做到了。我用这个CDN http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/jquery-ui.js –