Please take a look at this jsFiddle. Based on a click, an appended class is added to div. I'm trying to click based on the class and get a response. Your help is greatly appreciate!
jQuery(document).ready(function () {
var count = 0;
$("#more_time").click(function () {
count += 1;
$("#list_times").append($("#more_time").text() + " - <span id='remove_" + count + "' class='remove' style='cursor:pointer; '>(remove)</span><br>");
});
$(".remove").on("click", function () {
alert("Hello");
});
});
html
<div id="more_time">Weekdays 7:00am - 9:00am - More Time</div>
<br>
<br>
<div id="list_times"></div>