Whenever a slider has focus, the arrow keys ←, →, ↑ and ↓ can be used to control the slider handle, the Home key to set the slider at it’s minimum value and the End key to set the slider at it’s maximum value.
The script automatically assigns each slider the required ARIA role of “slider” and states “valuemax”, “valuemin” and “valuenow”.
Should an element with an id of fd_slider_describedby exist, this is used to set the ARIA “describedby“ relationship. Additionally, should the sliders associated form element itself have an associated label, this label is used to set the ARIA “labelledby” relationship.
fd_slider_describedby
label
View the JavaScript source or read the related article.
The following slider has been created from a select list whose options contain non-numeric values. A simple callback function has been defined that updates a dynamically created tooltip with the current slider value.
class="fd_slider fd_callback_TT-update"
The rather nice png images and styles for the black sliders were located at schillmania. Go visit…