전체 페이지뷰

2017년 1월 2일 월요일

text input box write only UpperCase

there are some difficulties in change logic.

First I tried javascript logic when key press I trigger the key up event
and keyCode >= 65 (a) and keyCode <= 90 (z)

I had restricted the only alphabet but hangul was deleted when over 2 more characters length in the Internet Explorer.

there are some solutions check the max length.

but my choice is changing the CSS

style="text-tramsform : uppercase;" 
that worked well on ie and chorme

  

댓글 없음:

댓글 쓰기