How do you automatically set text box to Uppercase?

后端 未结 12 605
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 23:50

I am using the following style attribute to set the user input to uppercase so that when the user starts typing in the text box for example railway, then it should

12条回答
  •  孤独总比滥情好
    2021-01-30 00:12

    The issue with CSS Styling is that it's not changing the data, and if you don't want to have a JS function then try...

    on it's own you'll see the field capitalise on keyup, so it might be desirable to combine this with the style='text-transform:uppercase' others have suggested.

提交回复
热议问题