Do:

$("#one").click( function() {
 $("#frame").html( "<div id='two'>Printed Element</div>" );

$("#two").click( function() {
 alert("Hello!");
} );
} );


On 5/30/07, Darrarski <[EMAIL PROTECTED]> wrote:


I trying to do something like this:

$("#one").click( function() {
   $("#frame").html( "<div id='two'>Printed Element</div>" );
} );

$("#two").click( function() {
   alert("Hello!");
} );

<div id="one">Click me</div>
<div id="frame">Empty</div>

when I click on the #one, #two is printed in #frame, but there is no
response when clicking #two

How can I declare action (like .click) on element printed by jQuery
function?

Somebody can help me?




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to