jQuery attr href, why isn't it working?
问题 I thought the following line of code should work fine: $(".1").attr('href', '#Home'); Right? But why isn't it working when I integrate it with another jQuery script? $(window).bind("load", function() { $('.1').click(function() { $('.1').removeClass('tab1'); $('.2').removeClass('active2'); $('.3').removeClass('active3'); $('.4').removeClass('active4'); $('.1').addClass('active1'); $('.2').addClass('tab2'); $('.3').addClass('tab3'); $('.4').addClass('tab4'); $('#PortfolioMainContainer:visible')