Answers for "jquery set content editable"

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 "jquery set content editable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language