Q:

jQuery Slider UI Value mixed with Inputs for multiplication computation

First time posting here. I appreciate any help. I plan on being active and giving help at that!
I looked at other posts and didn't find anything exactly relevant.
This was close: Getting the value from a jQuery UI Slider
Anyone have experience working with jQuery Slider UI? 
I am able to pass the initial value of the slider to the script that I have written, but I want to pass the value every time the slider moves to the variable "a" for the #total field.
Any help?
http://jsbin.com/ebahur/21/edit#javascript,html,live

A:

Like this: jsFiddle example 
I moved the function out of your input change so you can call it both when the inputs change and when the slider moves.
jQuery
$("#slider").slider({
    range: "min",
    value: 35,
    min: 20,
    max: 95,
    step: 5,
    slide: function(event, ui) {
        $("#amount").val("$" + ui.value);
        calc();
    }
});

$("#amount").val("$" + $("#slider").slider("value"));

$('#total').css('color', 'red');

$('input').change(calc);
function calc() {
    var n = $('#n').val();
    var y = $('#y').val() / 100; /*var a = $('#a').val() / 100;*/
    var a = $('#slider').slider('value') / 100;
    var x = $('#x').val();
    var total = n * y * a * x * 0.35;
    if (!isNaN(total)) {
        $('#total').attr('value', total);
    } else {
        alert('Opps Error! Please only numbers');
    }
}

​

