You can change the contents of portlets like this:
http://jsbin.com/imese4/2
load() .html() ( ).
$(".portlet").each(function(element){
$(this).children(".portlet-content").load("content.php?id="+element);
});
, :
$(".portlet-edit").click(function(element){
s=prompt('Enter your content','Content');
$(this).parent().children(".portlet-content").html("edited:" + s);
});