diff --git a/src/rzslider.js b/src/rzslider.js index 59e3a39..b3acb8e 100644 --- a/src/rzslider.js +++ b/src/rzslider.js @@ -284,6 +284,7 @@ function throttle(func, wait, options) { self = this; this.initElemHandles(); + this.addAccessibility(); this.calcViewDimensions(); this.setMinAndMax(); @@ -587,6 +588,18 @@ function throttle(func, wait, options) { this.selBar.addClass('rz-draggable'); } }, + + /** + * Adds accessibility atributes + * + * Run only once during initialization + * + * @returns {undefined} + */ + addAccessibility: function () + { + this.sliderElem.attr("role", "slider"); + }, /** * Calculate dimensions that are dependent on view port size