Its a thread upon this one: JQgrid checkbox onclick update database
right now i got it to work, but now i am able to click on the column cell and update happends in开发者_运维问答 my DB, but what i really want is that update happends only on checkbox click only, not cell click.
I hope I understand you correct and you want to set click
handle on the checkbox only and not on the cell having the checkbox. In the case you should just change the line
$(rows[i].cells[iCol]).click(function (e) {
to
$("input", rows[i].cells[iCol]).click(function (e) {
See the modified demo here.
精彩评论