[eluser]trta911[/eluser]
Hi all,
I'm working in uploadify integration on CI and have trouble, when I upload some photos, then those photos with jquery display on the page ...and I append to each of photo ability to delete (without reloading page), but this is not working - I build simple example what is wrong and what I need:
Code:
<body>
<h1>Test jQuery</h1>
[removed]
$(function(){
$("#img1").click(function(){
$("#img1").hide();
$("#target").replaceWith('<p id="target2">Hello</p>'+'<img id="test2" src="cross.png" alt="cross.png, 655B" title="Cross" border="0" height="16" width="16">');
});
$("#test2").click(function(){
alert("OK");
});
});
[removed]
<img id="img1" src="cross.png" alt="cross.png, 655B" title="Cross" border="0" height="16" width="16">
<p id="target">This is a test</p>
</body>
So I need, after jQuery loads results, that this results pass another jquery action (and ajax).
Thanks for help.