title: Mixing Javascript and jQuery?
body: <p>Main Question: Is it possible to use a JavaScript conditional and then use some jQuery code?</p>
  
  <p>Here is a currently non-working example: </p>
  
  <pre><code>&lt;script&gt;
  //&lt;![CDATA[ 
  if (location.pathname == "/SearchResults.asp" 
  || location.pathname.indexOf("-s/") != -1 
  || location.pathname.indexOf("_s/") != -1) 
  $('.colors_productname span').css("background-color", "#F7F7F7");
  //]]&gt; 
  &lt;/script&gt;
  </code></pre>
  
  <p>The JavaScript conditional was provided by my ecommerce platform (Volusion) to target just category pages (the jQuery was my doing). I asked them if this JavaScript code would still work given that my urls dont include "/SearchResults.asp" (One of them is actually "/Meats-s/3393.htm"), but they assured me that it should still work.</p>
  
  <p>Secondary Question: What do the "location.pathname.indexOf" lines do?</p>