动态修改 phpgrid 的工具提示


Modify tool-tip of phpgrid dynamically

我正在为我的网站使用来自www.phpgrid.com的数据网格。我想将工具提示自定义为自定义内容。我应该修改哪个文件,我应该怎么做?

我在他们的文档中看到了一个参考:

http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers

但这对我不起作用。

你想做什么??代码非常不言自明。将"第 1 列标题标题"替换为第一列标题,将"第 2 列标题"替换为第二列标题,依此类推。

jQuery(document).ready(function($){
    jQuery("tr.ui-jqgrid-labels th:eq(0)").attr("title", "Column 1 header title");
    jQuery("tr.ui-jqgrid-labels th:eq(1)").attr("title", "Column 2 header title");
    jQuery("tr.ui-jqgrid-labels th:eq(2)").attr("title", "Column 3 header title");
});