new week, new problems with my project, so I'll be glad to see any suggested solutions of yours :) .
The obstacle consists in that I have a slider made up with jQuery UI and I also have a JavaScript function which needs to get jQ's values of slider's increase and respectively decrease and store it in a variable.
So far, I was able to make a slider and stream it's parameters to an html <p><span>.. construction but it's not enough because this reflects only on the output of the document and has nothing to do with my js code/functions which I'm planning to develop later. Up to now, my code looks something like this:
$(function(){
$(".slider").slider()
$("#angle").slider({
value:0,
min:0,
max:250,
step:0.5,
slide: function (event, ui){
$( "#angres" ).html( ui.value );
$("fang").change(function(){
$("ang").val($(this).val());
});
}
});
$("#angres").html($('#angle').slider('value'));
Ok, this $( "#angres" ).html( ui.value ); works absolutely fine and displays the 'movement' of the slider on the document, with a changing value. However, I need to have exactly the same value in a parameter, to use it with js. I need to store this change in a variable. How to do it? :)
$(".slider").slider()shoud end with;;are optional in JS.