Appending to href of set of anchors
I'm sure the answer to this question has to do with iterating over each element in the wrapped set, but I still don't understand why.
I have a number of anchors in my page that have a class named Get.
I want to append a querystring name value pair to the end of each href.
$(
'.Get'
).attr(
'href'
).append(
'&id='
+ id);
does not work. Can someone tell me why and what is the correct solution.
Thanks