Home  >  Article  >  Web Front-end  >  How to set input prohibition in layui input box

How to set input prohibition in layui input box

藏色散人
藏色散人Original
2020-11-20 10:13:0610630browse

How to disable input in the layui input box: first open the corresponding code file; then set the input box attribute to "disabled readonly class="layui-input layui-disabled"" to disable input.

How to set input prohibition in layui input box

Recommended: "layUI Tutorial"

layui input prohibition input function

<input type="text" name="mg_name" disabled readonly class="layui-input layui-disabled">

1. disabled

2. class = "layui-disabled"

3. readonly (this is optional)

The above is the detailed content of How to set input prohibition in layui input box. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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