Suppose you have a link that contains some values:
<a href="/action?number_one=1&number_two=4" class="some_link"> something </a>
How can you increment number_one and number_two when a user clicks on this link using jQuery?
I know to extract number_one's value you can use regex:
var number_one = $(this).attr("href").match(/number_one=([0-9]+)/)[1];
How can you then increment it say by 20, so that it now becomes:
<a href="/action?&number_one=21&number_two=24" class="some_link"> something </a>