passing variable value to href argument in anchor tag

后端 未结 6 897
[愿得一人]
[愿得一人] 2021-01-25 12:35

how to pass the variable value to href argument in anchor tag.




        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-25 13:02

    Modify the jquery like this

     $('#a_tag_id').attr('href','http://www.google.com&jobid='+id);
    

提交回复
热议问题