$container.on('click', '.' + settings.activeClass, function(){ select(this); }); $container.on('click', '.' + settings.selectedClass, function(){ hideSelected(); });