공부/자바스크립트 jQuery

텍스트 박스 클릭하면 안에 설명글 사라지는 거

Ohming 2014. 4. 29. 09:39

<input type="text" id="quick_customer_name" name="quick_customer_name" style="width:65px; height:16px; ime-mode:active;" value="이름" onfocus="this.value=''" onblur="if(this.value =='') this.value='이름';" onkeydown="return fn_SubmitFromInput();" />




여기에서

value="이름" onfocus="this.value=''" onblur="if(this.value =='') this.value='이름';" onkeydown="return fn_SubmitFromInput();"


이 부분이 중요.