jQuery change input text value

后端 未结 5 1886
刺人心
刺人心 2020-11-28 02:12

I can\'t find the right selector for:


         


        
5条回答
  •  天命终不由人
    2020-11-28 02:59

    Just adding to Jason's answer, the . selector is only for classes. If you want to select something other than the element, id, or class, you need to wrap it in square brackets.

    e.g.

    $('element[attr=val]')

提交回复
热议问题