Welcome Guest, Not a member yet? Register   Sign In
Jquery manipulation with previously jquery loaded data
#1

[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>


&lt;/body&gt;

So I need, after jQuery loads results, that this results pass another jquery action (and ajax).

Thanks for help.


Messages In This Thread
Jquery manipulation with previously jquery loaded data - by El Forum - 10-06-2012, 09:58 AM
Jquery manipulation with previously jquery loaded data - by El Forum - 10-06-2012, 05:25 PM
Jquery manipulation with previously jquery loaded data - by El Forum - 10-06-2012, 06:50 PM
Jquery manipulation with previously jquery loaded data - by El Forum - 10-06-2012, 09:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB