I have two JQuery sliders, value of “Second_Slider” gets updated and a div named
“amount2” as well as it should.
Now i want to update an php variable to the value of “Second_Slider” also. how can i achieve this?
$( "#Slider" ).bind( "slide", function(event, ui) {
$("#Second_Slider").slider({ value:300 });
$( "#amount2" ).val( "$" + $( "#Second_Slider" ).slider( "value" ) );
<?php $Php_Var_I_Want_to_Change = "what-do-i-put-here? ?> };
updated
you could try something like this
php file