我正在尝试根据图像的标题重新加载jqgrid。如果标题是liveON,它应该进入,但事实并非如此。问题出在哪里?我需要用jquery获取标题参数吗?提前谢谢。
function reloadJson(){
alert("Go!");
if (document.getElementById("auto_reload").title == "liveON")
{
$('#list').trigger("reloadGrid");
}
}
使用 jQuery:
if ($("#auto_reload").attr("title") == "liveON")
{
$('#list').trigger("reloadGrid");
}