i have a select with class select-picker
in jquery.
<select class="form-control select-picker" name="tags[]" id="tags" data-live-search="true" multiple="true">
if i do scroll down below of this select and click it, or click in one option from this select, webpage to do scrolling to top.
I need disable this event or i don´t know how i can to solve this.
I´m trying with this codes, with bad result (not disable event, scroll to top):
$('.select-picker').on('changed.bs.select', function(e, clickedIndex, isSelected, previousValue) {
$("body").scrollTop(0);
}); // this code not run
e.offset().top; // This code not run.
e.off('scroll'); //This code not run.
$(window).off('scroll'); // this code not run
e.preventDefault(); // this code not run
This block also does not work
$(this).scrollTop($(this).scrollTop()-e.originalEvent.wheelDelta);
e.stopPropagation();
e.preventDefault();
I don´t know that i´m doing bad.
Sorry for my bad english and thanks for help me.