jQuery inline-edit on double-click?

2019-07-23 08:05发布

问题:

I'm using a jquery plugin for inline editing. But i would like to activate edition on double-click and not on single click.

Here is a created jsFiddle : http://jsfiddle.net/N5cvv/2/

Could you please tell me how to solve my problem?

回答1:

Check this edition in your code

.live( ['dblclick', 'mouseenter','mouseleave'].join(namespace+' '), function( event ) {

//in every click make as dblclick