From c1c93c08dfe40f74b42c46a612200222063b8b18 Mon Sep 17 00:00:00 2001
From: Cristian ',
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!