#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Location
    Sioux Falls, South Dakota
    Posts
    5
    Rep Power
    0

    Jquery Slider Not Working In Ruby


    I am setting the slider in a HAML file like this.

    %input.slider.setSlider{:type => "range"}

    The JQuery code looks like this.

    // Add JQuery Slider To Project
    $("#setSlider").slider({ value: 90 });

    This is very simple but when the slider loads it is not loading with a value of 90. I have tried multiple things and nothing is working. Any help is appriciated.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Location
    Sioux Falls, South Dakota
    Posts
    5
    Rep Power
    0
    I figured this out so this can now be closed. I was not properly setting the value.

    Should have been:
    $("#setSlider").val("90");

    Rookie mistake,

IMN logo majestic logo threadwatch logo seochat tools logo