I have written some code that on the click of a button adds a new tweet(div) to a list of divs. See shortened code below. Now even though the new div has all the same classes as the other divs. It does not perform when clicked.
How can I get the jquery click method to work for newly added divs?
$('.buttonClass').on('click', function() {
....
$newTweet.insertAfter('button');
});
$('.douglascalhoun').on('click', function() {
$("div").slideToggle();
$("div.douglascalhoun").slideDown();
});