I'm making a next page system in which you click on 'next' and it takes you to the next set of elements.
This is the button in php:
<input id="nextbtn" type="button" value="Next"></input>
This is the jquery function:
$('#nextbtn').click(function(){
});
The URL is: www.domain.com?var1=0&var2=20
I want to increment var1
and var2
by 20 everytime the 'next' button is clicked.
Please tell me the code I should write in the jquery function so that this works.
$var1 = $_GET['var1']
will get the new values. I need to know how to change the query string on button click.