Code:
$("input[type=checkbox]").on("click", function() {
deptsSelected = '<div id = "selected"> ' + $("label[for='" + this.id + "']").text() + '</div>';
$("#tabs").append(deptsSelected);
});
$("#selected").on("click", function() {
$("#tabs").slideUp();
});
When I click on #selected div nothing happend, I have checked if Jquery loading and every thing seems fine I am wondering why click function does not work. I will apreciate your help Thanks!