59233

Question:
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 <a href="http://jqueryui.com/demos/slider/#rangemax" rel="nofollow">slider</a> but its 1 or 2 numeric and not yes or no text...any suggestions
Answer1: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');
});
<a href="http://jsfiddle.net/nmLcw/" rel="nofollow">crazy demo</a>