I can’t seem to return a value from my function.. what am I doing wrong here? I am trying to subtract the value from findCostOfService from the slider value that the jQuery ui is giving me. Any thoughts?
function findCostOfService(n) {
n = 10;
}
$( "#slider" ).slider({
value: 100000,
min: 100000,
max: 5000000,
step: 150000,
slide: function( event, ui ) {
$( "#increasedRevenueValue" ).val(ui.value - findCostOfService());
}
});
1 Answer