Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to pass a value from one page to another page using PHP.
JavaScript
$(function() {
$( "#slider-range" ).slider({
range: true,
min: 100,
max: 500,
values: [ 75, 300 ],
slide: function( event, ui ) {
$( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
}
});
$( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
" - $" + $( "#slider-range" ).slider( "values", 1 ) );
});

I want to pass "max" value to the next page when I click submit button.
This function is from a jquery range slider. So, I want to pass max value (whichever value user selects with the range slider).
Thanks in advance.
Posted
Updated 4-Jul-13 8:32am
v4

1 solution

You can declare your max value as a hidden, then when you click the submit button, it will be passed.
HTML
<input type="hidden" id="max" value="500" />

Then in your jquery script:
JavaScript
max: $('#max').val();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900