var yearSelectHtmlText = "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" ; if (document.getElementById("model_year").outerHTML) { document.getElementById("model_year").outerHTML=""; } else { document.getElementById("model_year").innerHTML = yearSelectHtmlText; }