开发者

Programmatically end editing on all jeditable instances

My page has several jeditable instances in it. When my user clicks a finish button i'd like to be able to end editing on any jeditable instances that are still in edit mode. I can programmatically end editing by using .reset() which is the same as cli开发者_如何学JAVAcking the cancel buttons. I'd like to perform similar on the OK buttons.


You should be able to programmatically click all the OK buttons and reset them, e.g.

$('.editable :submit').click();

Example: http://jsfiddle.net/Eqt7h/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜