Change Input to Upper Case

前端 未结 15 768
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 22:02

JS:



        
15条回答
  •  [愿得一人]
    2020-12-07 22:38

    Javascript has a toUpperCase() method. http://www.w3schools.com/jsref/jsref_toUpperCase.asp

    So wherever you think best to put it in your code, you would have to do something like

    $(".keywords").val().toUpperCase()
    

提交回复
热议问题