开发者

jqgrid update database on checkbox click

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜