K.Z
K.Z

Reputation: 5075

How to get HTML 5 input type range with string values

I need HTML 5 slider with three text value instead of integer. for example one I need following three value in slider.

likely unlikely very likely

<input type="range" min="1" max="100" value="50" class="slider" id="myRange">

Upvotes: 0

Views: 1502

Answers (1)

michael.therrien
michael.therrien

Reputation: 76

This would give you the HTML input you want: <input type="range" min="1" max="3" value"1" class="slider" id="myRange">

From there you could put text above/below it for display purposes. You'd simply save the integer as a value, or change it to text server-side.

Upvotes: 2

Related Questions