I try to send the value from my slider to the saveprofile.php file with query post.
Here is my fiddle: http://jsfiddle.net/uzq7yym3/
and here the code snippet for jquery post:
$(document).ready(function(){
var einestundeslider = document.getElementById('slider_einestunde');
$("#saveprofilebutton").click(function(){
$.post('saveprofile.php', 'val=' + einestunde.noUiSlider.get(), function (response) {
alert(response);
});
});
});
saveprofile.php looks like this:
$value = $_POST['val'];
echo "I got your value! $value";
But i receive nothing :/