title: Apply multiple lines of jQuery within a single JS conditional
body: <p>I have some lines of jQuery that I want to apply only if it meets the conditional requirements. Heres the code:</p>
  
  <pre><code>&lt;script&gt;
  $(function() {
      //&lt;![CDATA[ 
      if (location.pathname == "/one-page-checkout.asp") 
         $('#content_area').css("height", "1400px");  &lt;!-- fix footer issue --&gt;
         $('#v65-onepage-ShippingCostDetails tr:nth-child(3)').css("display", "none");
      //]]&gt; 
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>The first line, <code>"$('#content_area').css("height", "1400px");"</code>, does what I want, and only applies if the URL has /one-page-checkout.asp. But the second line, <code>$('#v65-onepage-ShippingCostDetails tr:nth-child(3)').css("display", "none");</code>, is applying universally throughout my site. </p>
  
  <p>How can I make the second line, and any line after it, obey the conditional? </p>