I use two jquery
First click on “First” and show content
After click on “Twice” But not show content
This Link For My Code :http://jsfiddle.net/cFxsa/
Code :
$(function(){
$('.first').click(function(){
$('#load').html('<a href="#" class="second">Twice</a>');
});
$('.second').click(function(){
$('#twice').html('<a href="#" class="third">Third</a>');
});
});
clickcan be attached only to exsiting elements,.secondis being added after you tried to add it a callback,onsupportdelegation events:Fixed Fiddle