Jquery Slider Stop Functionality: Form to be submitted with values

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:

  1. stop: function(e, ui){
  2.       $("form").submit(function(){
                $.ajax({
                      type: "GET",
                      url: "/controller",
                      data: dataString
                });
          return false;
          });
    }







& this

  1. stop: function(e, ui){
  2.       $.get("/controller", {abc: $("#abc").val(), strdate: <date>, enddate: <date>} );
  3. }
As I am new to Jquery am not sure about how this works.

Thanks