Jquery Slider Stop Functionality: Form to be submitted with values
I have a Jquery Slider Widget on stop function i need to pass the values from the slider to fetch the result based on that value which needs values to be sent to the server.
I tried this:
- stop: function(e, ui){
- $("form").submit(function(){
$.ajax({
type: "GET",
url: "/controller",
data: dataString
});
return false;
});
}
& this
- stop: function(e, ui){
- $.get("/controller", {abc: $("#abc").val(), strdate: <date>, enddate: <date>} );
- }
As I am new to Jquery am not sure about how this works.
Thanks