This article mainly introduces the hidden, read-only and restricted attributes of input. By changing the attributes of input, the input box can be limited in length and cannot be modified. Friends in need can refer to it. I hope it can help everyone.
Hide
<input type="hidden">
Readonly
<input type="text" readonly>
Invalid
< ;input type="text" disabled>
Limitations
##
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
Shield input method
<input type="text" name="url" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9">
disabled and
readonly.
<INPUT type=”text” name=”username” value=”james” disabled> Readonly使用: <INPUT type=”text” name=”partNumber” value=”1500″ readonly>
Detailed explanation of WeChat applet input input examples
Tutorial on how to encapsulate input components in Vue
php://input input stream detailed explanation
The above is the detailed content of Attributes of input in PHP. For more information, please follow other related articles on the PHP Chinese website!