Reputation: 6029
I have a div:
<div id="links">
<a href="http://something.domain.com">link></a>
<a href="http://something.domain.com">link></a>
<a href="http://something.domain.com">link></a>
<a href="http://something.domain.com">link></a>
........
</div>
How can I add multiple parameters to these links from within div with id links?
EDIT:
So the links will be like this:
<a href="http://something.domain.com?param=1¶m2=2¶m3=3">link</a>
Upvotes: 0
Views: 50
Reputation: 25352
try like this
$("#links a").each(function(){
$(this).attr("href",$(this).attr("href")+"?param=1¶m2=2¶m3=3");
})
Upvotes: 2