I have problem with jquery function. I am trying to work with variable from jquery form slider and I have this script.
$(document).ready(function () {
$("#slider-amount").slider({
  range: "min",
  value: 10,
  step: 10000,
  min: 100000,
  max: 1000000,
  slide: function( ev, ui ) {
    var amountValue = ui.value;
    $("#amount").text(ui.value);
    process(amountValue);
  }
 });
$("#slider-year").slider({
  range: "min",
  value: 10,
  step: 1,
  min: 5,
  max: 15,
  slide: function( ev, ui ) {
    var yearSlider = ui.value;
    $("#year").text( ui.value );
    process(yearSlider);
  }
});
function process(yearSlider, amountValue){
    var valueFromSlider = amountValue;
    console.log(valueFromSlider);
    if(lc_jqpost_info[valueFromSlider] !== undefined) {
     document.getElementById("vypocet_splatka").innerHTML = lc_jqpost_info[valueFromSlider];
    };
}
});
The problem is that in console work only yearSlider value and second amountValue show status undefinated.
Thank you for your help.
