【问题标题】:Textbox focusing second word文本框聚焦第二个单词
【发布时间】:2017-05-08 10:13:46
【问题描述】:

我在文本框中遇到问题,总是关注第二个单词而不是第一个单词。如果我设置 Maxlenth=1 意味着它不允许我输入。只有按退格键后我才能打字。帮我解决这个问题。

这是我的代码:

<input type="text" name="exMark[]" id='exMark'   value=" " style="width:30px; height:20px; text-transform:uppercase;" maxlength='1'>

【问题讨论】:

    标签: php jquery html css


    【解决方案1】:

    从属性 value=" " 中删除空格。改成 value="" 或者根本不写。

    <input type="text" name="exMark[]" id='exMark'   value="" style="width:30px; height:20px; text-transform:uppercase;" maxlength='1'>
    

    【讨论】:

      【解决方案2】:

      删除value=" "中多余的空格

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-11-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-10-19
        • 1970-01-01
        • 2013-02-28
        相关资源
        最近更新 更多