I'm setting a click function to open a tab but on click it scrolls the page down which I don't want to happen. How can I stop the scroll?
$(window).bind("load", function() {
if ($('.feefo-review-widget-product').get(0)) {
if ($('.feefo-review-widget-product').get(0).shadowRoot.innerHTML.length < 1000) {
$(".data.item.title.feefo.reviews").insertAfter(".tab-content.product.info.delivery");
$(".tab-content.feefo.reviews").insertAfter($(".data.item.title.feefo.reviews"));
setTimeout(function() {
$('div#tab-label-description').click()
}, 100);
}
}
});
#tab-label-descriptionthat does this.if ($('selector').length > 0)