vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.72k forks source link

checkbox inline editable #782

Open kodeine opened 9 years ago

kodeine commented 9 years ago

As the title says, i want to have an inline checkbox only but editable.

http://jsfiddle.net/xBB5x/331/

or how to make these checkboxes editable. http://jsfiddle.net/3u8ydz7s/

Anyone can chime in on how that can be achieved?

Eliasar commented 9 years ago

I assume you want something like this?

http://jsfiddle.net/xBB5x/8746/

You needed to add this to the top of your javascript $.fn.editable.defaults.mode = 'inline';

kodeine commented 9 years ago

@eliasar, how about just a checkbox itself, unchecking or checking it self would send post request.