tonytomov/jqGrid — comment on commit e18b583ef0d94b58e8179988ac7436aeb2ae92ff
File:  line 0
By OlegKi:

Hello Tony,

the `td` is defined as `td = e.target;` in the first line of the body of `$(ts).before(grid.hDiv).click(function(e) {`. So the `tdHtml = $(td).html();` can contain not the HTML of the cell, but only the clicked element (like ``) inside of the cell. So I suggest to change `tdHtml = $(td).html();` to `tdHtml = $(td).closest('td,th').html();`.

Best regards
Oleg