I want to make div editable which is created dynamically. Which is also draggable div .
This is what I tried
1)$("#divid").attr('contentEditable','true');
2)$("#divid").live("click",function(){
$(this).click('contentEditable',true);
});
3)$("#divid").click('contentEditable',true);
but none of the above working. Any idea how to make it working!
Thanks in advance!
Since you are having a dynamically created div use
.on()
handler for it and.prop()
:find out in fiddle: http://jsfiddle.net/SEvDe/
Fiddle
It works as a charm.
with javascript u could have tried this