开发者

Programmatically end editing on all jeditable instances

开发者 https://www.devze.com 2023-03-19 00:34 出处:网络
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 en

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

精彩评论

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

关注公众号