jquery add contenteditable 3d 22true 22

Solutions on MaxInterview for jquery add contenteditable 3d 22true 22 by the best coders in the world

showing results for - "jquery add contenteditable 3d 22true 22"
Valentina
20 Mar 2018
1$( "#mylabel" ).click(function() {
2    var value = $('#editablediv').attr('contenteditable');
3
4    if (value == 'false') {
5        $('#editablediv').attr('contenteditable','true');
6    }
7    else {
8        $('#editablediv').attr('contenteditable','false');
9    }
10});