Click on
to focus <input>

前端 未结 6 1319
时光说笑
时光说笑 2020-12-30 22:54

I have a series of input elements each with a few

tags separate.
I like to have if where I can click on any of the
6条回答
  •  一向
    一向 (楼主)
    2020-12-30 23:41

    1. USING HTML ("for") :

      HTML provides this functionality. Using "for" "id" you can easily achieve it.

     
    1. USING jQuery ("focus")

    $(".classname").click(function(){

    $("input").focus(); })

提交回复
热议问题