title: jQuery Passing $(this) to a Function
body: <p>I have lines of code like this:</p>
  
  <pre><code>$(this).parent().parent().children().each(function(){
      // do something
  });
  </code></pre>
  
  <p>It works well. But I need to run these lines multiple times.
  So I have created a function and pass $(this) parameter to a function:</p>
  
  <pre><code>myFunc( $(this) );
  
  function myFunc(thisObj) {
      thisObj.parent().parent().children().each(function(){
          // do something
      });
  }
  </code></pre>
  
  <p>But in this way, It didn't work.</p>