Answers for "jquery contenteditable change"

2

jquery add contenteditable="true"

$( "#mylabel" ).click(function() {
    var value = $('#editablediv').attr('contenteditable');

    if (value == 'false') {
        $('#editablediv').attr('contenteditable','true');
    }
    else {
        $('#editablediv').attr('contenteditable','false');
    }
});
Posted by: Guest on December-03-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language