How can I blur/focusout a div where contentEditable=true? I have attempted $(elm).blur() and $(elm).attr(\'contentEditable\', false);
$(elm).blur()
$(elm).attr(\'contentEditable\', false);
Appending to all answers, when using something like
$(".editable").blur()
think about blurring only focused, like
$(".editable:focus").blur()
If not you can get into nice probs sometimes