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

#72661
yoboubdir
Member

i think the best way, it’s to use disabled=”disabled” property and css.


input[disabled="disabled"] {
background-color: #808080;
}