본문 바로가기

노력/회사

인터넷 익스플로러 <input> 외부 클릭으로 value 변경하기

인터넷 익스플로러는 placeholder를 지원하지 않습니다.

 

그래서 value와 onfocus=this.value='';로 그 대신 사용하고 있는데요.

 

 

https://stackoverflow.com/questions/4585890/jquery-detecting-when-a-user-clicks-out-of-an-input-type-text-field

 

jQuery - Detecting when a user clicks OUT of an input type Text Field

I want to detecting when a user clicks OUT of an input type Text Field, not in. Here's what I have but both events are firing on click inside (focus):

$("#...

stackoverflow.com

 

https://stackoverflow.com/questions/25162665/jquery-detect-the-click-outside-of-input

 

Jquery - detect the click outside of input

$('.hor-minimalist-a').on('blur','#ok',function(){ }); with this code above, i can handle events which fire If i leave the input field. How can I detect if someone cli...

stackoverflow.com

 

https://stackoverflow.com/questions/29155179/detecting-click-outside-a-text-field/29155233

 

Detecting Click outside a text field

I have a submit button and a text field. I know how to detect when user clicks inside the text field. Basically what i am doing is, when user clicks inside the text field, hide the text. if(

stackoverflow.com

 

input의 외부를 클릭했을 때 value를 다시 채워넣어주면 placeholder처럼 쓸 수 있습니다.

 

 

 

 

외부 placeholder를 사용할 수도 있습니다.

 

https://webclub.tistory.com/348

 

IE9이하 custom placeholder 처리하기

Custom Placeholder 플레이스 홀더는 브라우저마다 조금씩 다르게 구현되어 있습니다. 예를 들어, Chrome 은 텍스트 필드에 키값이 입력되어질 때 플레이스홀더 마킹이 사라지고 키값에 대한 텍스트를

webclub.tistory.com