So I have this code:
$(document).click(function(e){
$(".label").removeClass("active");
});
$(".input-combo").click(function(e){
e.stopPropagation();
var $this = $(this),
label = $this.find(".label");
$(".label").removeClass("active");
label.addClass("active");
});
And apart from the $(document)
click part it works ok, but with the document part the first click
event cancels out the $(".input-combo")
click event. How could I prevent this?