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
November 22, 2010 at 4:36 pm
#72661
yoboubdir
Member
i think the best way, it’s to use disabled=”disabled” property and css.
input[disabled="disabled"] {
background-color: #808080;
}