Hi everyone, I'm trying to implement a simple function using jqGrid, but it doesn't seem to work and I was wondering if anyone has an explanation.
Basically one column of jqGrid returns (through JSON)
<a href="#" id="special">Click</a>
Outside the column, I have a jQuery listener that is of the form
$("#special").click(function () {
alert("hi");
});
Now when I have the exact same a href outside the column, the alert pops up. It doesn't, however, when the code is inside the grid as part of JSON. Is that to be expected?
Thanks.
FYI the JSON response is along the lines of
\u003ca href=\"#\" id=\"special\"\u003eClick\u003c/a\u003e
but I doubt it's the issue because if I do
<a href="#" onclick="alert('Hi');">Click</a>
it works.