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