Well, you do not understand, but I will try to guess. If you want to make the div editable, you can mark it with contenteditable
to do this, replace the code
<a href="#"><span style="margin-left:5px;"><img src="images/editbutton.png" onmouseover="this.src='images/editbuttonhover.png'" onmouseout="this.src='images/editbutton.png'" title="Edit" alt="edit" /></span></a>
from
<a href="javascript:void(0)" class="edit"><span style="margin-left:5px;"><img src="images/editbutton.png" onmouseover="this.src='images/editbuttonhover.png'" onmouseout="this.src='images/editbutton.png'" title="Edit" alt="edit" /></span></a>
then add script
<script> $("a.edit").click(function(){ $("div.question-content").attr("contenteditable", "true"); }); </script>
Note that I added a class for reference and replaces HREF
Here is my example http://jsfiddle.net/r9HTe/
Volodymyr bilyachat
source share