Set value of hidden input with jquery

前端 未结 7 960
忘了有多久
忘了有多久 2020-12-25 09:03

I\'m trying to set the value of the hidden field below using jQuery.


I\'m using

7条回答
  •  渐次进展
    2020-12-25 10:04

    You don't need to set name , just giving an id is enough.

    
    

    and than with jquery you can use 'val()' method like below:

     $('#testId').val("work");
    

提交回复
热议问题