$(document).ready(function () { //Append Data then make it a chosen box $("#shop_by_type").append(''); $("#shop_by_type").chosen({ width:"272px", no_results_text: "Oops, nothing found!", search_contains:true }); $("#shop_by_manufacturer").append(''); $("#shop_by_manufacturer").chosen({ width:"204px", no_results_text: "Oops, nothing found!", search_contains:true }); $("#shop_by_scale").append(' '); $("#shop_by_scale").chosen({ width:"204px", no_results_text: "Oops, nothing found!", search_contains:true }); }); function ShopByNav(el) { ga('send', {'hitType': 'event','eventCategory': 'Header-Search','eventAction': $(el).val()}); location.href = $(el).val(); } function printPage(){ ga('send', {'hitType': 'event','eventCategory': 'ShareThis','eventAction': 'print'}); window.print(); }