Hi. I'm trying to get a textarea field to show a live character count (or countdown to the limit) as they type. I've identified the jeditable charcounter plugin and added the two relevant JS files according to https://jeditable.elabftw.net/
The 'original' (non mydbr instructions) say to add:
$(".charcounter").editable("save.php", {
type : "charcounter",
submit : 'OK',
tooltip : "Click to edit...",
onblur : "ignore",
charcounter : {
characters : 60
}
});
But I suspect I don't need all of this since part is handled by mydbr (save.php part and perhaps onblur and buttons)
So I tried adding to the dbr.editable field the options:
SELECT 'dbr.editable', 'my_field', 'update_function', 'inID=id',
'type=textarea', "options={'rows':20,'cols':70, 'type':'charcounter','charcounter':{'characters':750}}";
..but it doesn't work.
Can you give any suggestions?