I save a text with Jquery/Ajax method. I use an edit-in-place script (Jeditable) which allows to edit text by clicking on it. Unfortunately, Jeditable script doesn't work on dynamically created items, it works only when I reload the page.
this is my script:
$(".edwa").editable("/edit.php", {
indicator:"<img src='/images/loading.gif'>",
width:439,
height:90,
loadurl:"/load.php",
type:"textarea",
onblur:"submit"
});
In a similar situation I fixed the problem by adding "$(document.body)
" to the script but in this case I don't know what will be the correct syntax to add "$(document.body)
". Any ideas or any other suggestions to solve the problem?