Home > Article > Web Front-end > How to set input prohibition in layui input box
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.
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!