Jquery manipulation with previously jquery loaded data
Hello, how to do if I load some data with jQuery and again handle this data again with jquery? It is possible?
Here is my example:
...
...
- <body>
- <h1>Test jQuery</h1>
- //jscript start//
- $(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");
- });
- });
- //jscript end//
- <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>
..
..
Thanks