.
Then, i've scripted this:
[code]
$("#images").find("#imagencap")
.click(function(e){
if($(this).children().is("textarea")){ return; }
var myP = $(this).find("p");
var myCaption = myP.text();
var myId = myP.attr("id");
var textarea = "<textarea id="+myId+">"+myCaption+"</textarea>";
var buttons = "[<a href='#'>SAVE</a>] [<a href='#'>CANCEL</a>]";
myP.hide();
myP.before("<br />"+textarea+"<br />"+buttons);
});
[/code]
... That works!. But only for the first occurrence!
Where is the problem?
Thanks :)