I have an input area that is transparent, and when you click on it, a luminous border (intended) appears, and you can edit the text. I am trying to get a luminous border to still display when you click it, but make the text unedited.
<input style='border:none; background:none;' value='TEXT'>
Adding readonlyor readonly="readonly"forcing the input to act as an uneditable div, you cannot double-click on the input area to select everything, and the luminous frame is not displayed. How to keep input functionality while preventing text changes?
source
share