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/
精彩评论