简体   繁体   English

限制输入标签的格式

[英]Restricting the format of an input tag

Within an <input type="text" /> tag how do you I mask the input field so that the user is resricted to the following format [].[] and in between the brackets can be any number of characters. 如何在<input type="text" />标记中屏蔽输入字段,以便将用户限制为以下格式[].[]并且方括号之间可以是任意数量的字符。

As an example: 举个例子:

"[Analysis].[Analysis]" 

or a another example: 或另一个例子:

[Analysis-Result].[Analysis Result]"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM