Home > Web Front-end > HTML Tutorial > Can the text be displayed as label style_html/css_WEB-ITnose

Can the text be displayed as label style_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:35
Original
1487 people have browsed it

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.


Reply to discussion (solution)

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.


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" />
Copy after login

Since you don’t want the user to input content, there is no need to use text, just use other ones, label, div , span. . . . . .

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template