Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#63806
noahgelman
Participant

@ultimatepe, not sure why I didn’t think of that, that sounds like it would work just fine, I’ll test it out eventually. I’m much further in the project and a bit swamped so it’ll have to be at another time.


@TT_Mark
, I forget if I tried that, since it was a while ago, if I did try it and didn’t stick with it, it might have been because IE styles a field with a readonly attribute like it does with one with a disabled attribute and the browser default style was overriding mine.

I might be wrong though.