Click here to Skip to main content
15,797,721 members
Please Sign up or sign in to vote.
4.00/5 (3 votes)
See more:
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) {

How to call this method..?
Updated 27-Jun-12 22:40pm

1 solution

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+"">";
Share this answer
E.F. Nijboer 28-Jun-12 7:27am    
Looks like a small typo in the o of önclick.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900