1

I am trying to find a slider or a toggle for my application that allows the user to select yes or no and its harder then i thought to track one down...

I found this slider but its 1 or 2 numeric and not yes or no text...any suggestions

Matt Elhotiby
  • 43,028
  • 85
  • 218
  • 321

1 Answers1

4

we could edit it to have something like this,

$(function() {
    $("#slider-range-max").slider({
        range: "max",
        min: 0,
        max: 1,
        value: 0,
        slide: function(event, ui) {
            $("#amount").val(ui.value?'Yes':'No');
        }
    });
    $("#amount").val($("#slider-range-max").slider("value")?'Yes':'No');
});​

crazy demo

Reigel Gallarde
  • 64,198
  • 21
  • 121
  • 139