I am making a responsive website with bootstrap with html binding in my navigation. In my navigation bar I have a logo, when a user clicks on it, the site scrolls up. And everything works on the desktop. But on the ipad with Safari, when I click on the logo to scroll up, it only works once. And my navigation bar with an anchor error after that.
How to fix it?
My code is:
$(document).ready(function(){ $('.brand').bind('click',function(){ $('html,body').animate({scrollTop: 0}, 'normal'); }); });
source share