33
rated 0 times
[
36]
[
3]
/ answers: 1 / hits: 18749
/ 10 Years ago, sat, april 19, 2014, 12:00:00
I am using contenteditable=true in a div
What I want to do it to toggle true and false on this attribute everytime I click on a div.
example:
$( #mylabel ).click(function() {
$('#editablediv').attr('contenteditable','false');
});
I tried:
$( #mylabel ).toggle(function() {
$('#editablediv').attr('contenteditable','false');
});
but that didn't work
How can I do this?
More From » jquery