How can I acceess objects(divs) that were dynamically generated. I mean DIVS that were not present in output when $(document).ready(function() started.
$(document).ready(function()
If I
Create the div explicity and assemble its attributes and events before you append it.
var $div = $('').append('can you click on me?').attr('id', 'clicker2').click(function() { alert('hurray, it works'); }); $('#container').append($div);