<input type="range" min="2" max="52" value="4" step="1"/>
Can I have one of these input ranges with non-numeric intervals? Like “Yes” then “maybe” then “no”?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The type
rangeof htmlinputis designed for imprecise input values.Anyway, if you really want to use a slider for this purpose, you can maybe set on your script that 0 is no, 1 is maybe and 2 is yes. In jQuery, it would be something like this:
Live example:
http://jsbin.com/upeyew