-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Checklist
- I'm using version [0.3.4]
- My browser is: Chrome, Firefox and other's I havent seen
Description
I have form on my page which has multiple text input fields. I wanted to add a range slider too. I added it via the code below. The issue is that whenever I open the page it is autofocusing on the slider which should not be the case. I checked the documentation to see whether there is any option to alter autofocus or not, but didn't find any. Could any one please help.
This is how I used it in my code:
var rangeSlider = function(){
var slider = $(document).find('.my-range-slider');
slider.each(function(){
var value = $(this).attr('value');
$(this).asRange({
step: $(this).attr('step'),
range: false,
min: parseInt($(this).attr('min')),
max: parseInt($(this).attr('max'))
});
$(this).asRange('val', value);
});
};
rangeSlider();
Metadata
Metadata
Assignees
Labels
No labels