-block-form").attr("autocomplete", "off"); /* disable firefox autocomplete suggestions */ $("#search-block-form .form-item").append('<div id="autosuggest"></div>'); /* add autosuggest item parent */ var autosuggest = $("#search-block-form .form-item input[type=text]"); var autosuggestVal; var firstRun = true; autosuggest.focus(function(){ /* this is to capture the placeholder text that is set via jQuery */ if (firstRun==true) { autosuggestVal = autosuggest.val(); firstRun = false; } if (autosuggest.val() ==