如何调用此javascript方法. [英] How to call this javascript method.
本文介绍了如何调用此javascript方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在jquery网格中为一列图像
我正在使用以下功能将图像绑定到jquery网格中
I have image a column in jquery grid
i am using below function to bind the image in jquery grid
function checkNotes(cellvalue, cval, opts) {
return "<img src='../../images/Notes.jpg' class='NotesSample' onclick='DisabledEffect("+cellvalue+");' alt='" + cellvalue="">";
}
我想在图片点击时触发操作,但这不称为
i want to fire the action when the image is clicking but this is not called
function DisabledEffect(cellvalue) {
alert(cellvalue);
}
推荐答案
在您的代码中,我连续不断地看到双引号().如果没有输入错误,它应该像
In your code I am seeing double quotes(") continously. If there is not typo error it should like like
return "<img src="../../images/Notes.jpg" class="NotesSample" onclick="DisabledEffect("+cellvalue+");" alt="" + cellvalue+"">";
</img>
这篇关于如何调用此javascript方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文