<b>event</b>t
Clone.prototype = this;
$('body').on('click', '.dropdown', function(e) {
$('.dropdown').not(this).removeClass('active');
if (e.target === this) $(this).toggleClass('active');
e.stopPropagation();
});
$(document).click( function(){
$('.dropdown').removeClass('active');
});
$(document).on('click', '.dropdown', function(e) {
$('.dropdown').not(this).removeClass('active');
$(this).toggleClass('active');
});
$('body').on('click', '.dropdown', function(e) {
$('.dropdown').not(this).removeClass('active');
$(this).toggleClass('active');
e.stopPropagation();
});
$(document).click(function(){
$('.dropdown').removeClass('active');
});
$(event.target).val()
Если не знаете почему, то бегом изучать основы js.
Вот вам демо для раздумий: https://jsfiddle.net/2fzwxj50/
загляните в консоль. jquery подключен.