2

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!

Tushar
  • 85,780
  • 21
  • 159
  • 179
Alaa Mohammad
  • 666
  • 1
  • 6
  • 20

0 Answers0