",{"class":"options color white blue-bg"}).insertAfter(sb);for(var i=0;i", {text:s.children("option").eq(i).text()}).appendTo(l);}var si = l.children("li");sb.click(function(e){e.stopPropagation();$(this).addClass("active");$(this).children("span").toggleClass("fa-angle-up");$(this).next().addClass("active").slideToggle("fast");});si.click(function(e){e.stopPropagation();sb.text($(this).text()).append('');s.val($(this).text());l.hide();});$(document).click(function(){l.hide();$("div.active").children("span").removeClass("fa-angle-up");});})});