title: jQuery attr href, why isn't it working?
body: <p>I thought the following line of code should work fine: <code>$(".1").attr('href', '#Home');</code>
  Right?</p>
  
  <p>But why isn't it working when I integrate it with another jQuery script?</p>
  
  <pre><code>$(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').fadeOut("slow",function(){
              $('#TextContent').load('Home.html', function() {
                  $(this).fadeIn("slow")
              });
              return false;
          }); 
  
          if(!$(".1").hasClass("ActiveTab1")) {
              $(".1").attr('href', '#Home');
              $('#TextContent:visible').fadeOut("slow",function(){
                  $('#TextContent').load('Home.html', function() {
                      $(this).fadeIn("slow")
                  });
                  return false;
              });
          }
          $(".1").addClass("ActiveTab1");
  
          $(".2").removeClass("ActiveTab2");
          $(".3").removeClass("ActiveTab3");
          $(".4").removeClass("ActiveTab4");
      });
  });
  </code></pre>
  
  <p>The thing I want to get clear is when you click on the div with the class .1 then the URL has to change to <a href="http://www.websiteurl.com/#Home" rel="nofollow noreferrer">http://www.websiteurl.com/#Home</a></p>
  
  <p>Does anybody have an idea how to get it working?</p>