Answers for "jquery add contenteditable="true""

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 add contenteditable="true""

Code answers related to "Javascript"

Browse Popular Code Answers by Language