php_guest Posted June 2, 2009 Share Posted June 2, 2009 When user click on Click me, one.html is loaded. Inside this html is <p id="test">Click me2 </p>. I want that after user click on Click me 2 (which appers after he click on first Click me) that second action append <p>third</p>' to #include2 (this id is from one.html). Is even possible to do that? Now when I click on Click me 2 nothing happen, like there is no second click function. I want to append <p> include on click a <p id="test" $(function() { $('#clickme').click(function() { $('#include').load('one.html'); }); }); $('#test').click(function() { $('<p>third</p>').appendTo('#include2'); }); }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.