Skip to content

How to remove autofocus #17

@niravpatel9898

Description

@niravpatel9898

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions