Could someone please explain to me why adding an even number of squares causes the bind event to stop working?
$("#add").click(function(){
$("#container").append("<div class=\"square\">xxxxxx</div> ").bind("click",function(e) {
$(e.target).toggleClass( "change" );
});
});