Home › Forums › JavaScript › How to prevent a user from typing in an input field › Re: How to prevent a user from typing in an input field
January 26, 2011 at 4:19 am
#63901
ultimatepe
Member
I use:
Seems to work just as well but requires no jQuery and is much shorter. I haven’t tested it on multiple browser versions though so could fall down on some. I do know that on latest versions of FF it stops the user clicking the input at all, on IE 8 it allows the user to click into the input but the immediately stops them from typing anything.