开发者

jqgrid update database on checkbox click

开发者 https://www.devze.com 2023-04-01 09:12 出处:网络
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 r

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

精彩评论

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