我有由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 –