diff --git a/README.md b/README.md index d306ffc..2a5a3ed 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,14 @@ $(document).ready(function() { indicator : '', tooltip : 'Click to edit…' }); + + $('.edit_select').editable('save.php', { + type : 'select', + indicator : 'Saving ...', + loadurl : 'api/load.php', + inputcssclass : 'form-control', + cssclass : 'form' + }); }); ~~~ @@ -72,6 +80,8 @@ In the code above, the elements of class `edit` will become editable with a doub The elements of class `edit_area` will become editable with a textarea. An image will be displayed during the save. +The elements of class `edit_select` will become a selectable drop-down list. + Both elements will have a tooltip showing when mouse is hovering. The [live demo](https://jeditable.elabftw.net) shows more example but with that you can already do plenty!