Am learning Javasript/Jquery so any help will be welcomed.
I have replaced a textarea in a form a Summernote object to allow users to format text for emails, which is then output using PHP
Basically it all works well except that when it was a plain textarea I used an onkeyup function to detect if there was any text, and enable/disable the “send email” button.
I cannot seem to get this to work with Summernote.
my latest try:
$('#summernote').summernote({ callbacks: { onKeyup: function (e) { var x = ($('#summernote').summernote('isEmpty')) ; $('#btnEmail1').prop("disabled", x ); } } });
I have also tried using the onchange callback, but that doesn’t work either…