Home >Web Front-end >HTML Tutorial >Can the text be displayed as label style_html/css_WEB-ITnose
I have a form with a lot of content in it. I don’t want users to be able to input it and it will be displayed in the label style. I can modify and get its value in javascript. I don’t want it to be displayed like (type=text) with a cursor. and the input box.
Isn’t readonly possible?
Isn’t readonly possible?
I don’t want people to see that it is input type=text, and I don’t want users to be able to modify these values.
bc01547e67ba0765021f6c2fa51138f7
bc01547e67ba0765021f6c2fa51138f7
Thank you, this can remove the border, but the cursor is still there. Is there a way to remove the cursor?
You can use span etc.
<input type="text" disabled="disabled" style="border:0; background-color:#FFF;" value="test" />
Since you don’t want the user to input content, there is no need to use text, just use other ones, label, div , span. . . . . .