Hello folks,

I'm wanting to use slider in a dewpoint calculator - users will
"slide" a value for air temperature and another for relative humidity
and with those values a dewpoint temperature will be calculated and
displayed.

My problem is that I can't work out how to capture the values of the
respective "sliders" in order to proceed with the dewpoint
calculation.

My code thus far is:
    $("#slider1").slider({
                        value:0,
                        min: 0,
            orientation: "vertical",
                        max: 40,
            value: 21,
                        step: 1,
            slide: function(event, ui) {
                var Ta = ui.value;
                                $("#amount").val(Ta);
                        }
                });
    $("#slider2").slider({
                        value:0,
                        min: 0,
            orientation: "vertical",
                        max: 100,
            value: 70,
                        step: 1,
            slide: function(event, ui) {
                var rH = ui.value;
                                $("#amount2").val(rH);
                        }
                });

How do I store/collect/save Ta and rH in order to do the post-select
calculations?

Thanks/Bruce
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to