title: Javascript not selector
body: <p>i am noob at this one so I wanted to ask you if you maybe know how to select all elements except one.</p>
  
  <p>Here is script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var jump = function (e) {
          //prevent the "normal" behaviour which would be a "hard" jump
          e.preventDefault();
          //Get the target
          var target = $(this).attr("href");
          //perform animated scrolling
          $('html,body').animate({
              //get top-position of target-element and set it as scroll target
              scrollTop: $(target).offset().top
              //scrolldelay:1 seconds
          }, 1000, function () {
              //attach the hash (#jumptarget) to the pageurl
              location.hash = target;
          });
      }
      $(document).ready(function () {
          $('a[href*=#]').bind("click", jump);
          return false;
      });
  &lt;/script&gt;
  &lt;!-- // end of smooth scrolling --&gt;
  </code></pre>
  
  <p>And I want to do same effect on all links except #myCarousel . Question is how to do that and where needs to be included :not selector in script.</p>
  
  <p>Thanks in advance.</p>