How can I get the value of the quantity local variable for the valueChanged method of functionName1 into functionName2 and assign it to a local variable within that?
var functionName1 = function() {
$newCheckoutNumberPicker.WanSpinner({
maxValue: 99,
minValue: 0,
valueChanged: function(ele, val) {
var quantity = val
}
});
}
var functionName2 = function() {
var test1 = "";
functionName1();
}