60
rated 0 times
[
66]
[
6]
/ answers: 1 / hits: 46065
/ 14 Years ago, mon, april 19, 2010, 12:00:00
How do I add let's say something like ajax=1
to all links on my page with jquery. I will also need to check if the url has existing parameters. for example http://example.com/index.php?pl=132
will have to become http://example.com/index.php?pl=132&ajax=1
Also, if the link does not have any parameters, for example http://example.com/index.php
, it will become http://example.com/index.php?ajax=1
I want to load the jQuery script on document ready so all links are changed on page load.
More From » jquery