passing variable value to href argument in anchor tag

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

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




        
6条回答
  •  温柔的废话
    2021-01-25 13:08

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

    The selector should be for id '#', and the querystring starts with "?".

    BTW: Isn't this question following up on your last question: Pass an id to anchor tag ?

提交回复
热议问题