title: jquery in smarty tpl
body: <p>jquery in smarty tpl -- Trying to use jquery to insert a class attribute so that I can CSS style every other list item row with shading. The following code seems as though it should work, but "alt" class is not getting inserted into li tag. Page loads fine -- no problems there. Anyone see something obviously wrong?</p>
  
  <pre><code>{literal}
  &lt;script src="{$content_dir}themes/pres2c/js/stripe/jquery-1.7.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          jQuery(document).ready(function(){
          jQuery(".block_content li:even").addClass("alt");
          });
      &lt;/script&gt;
  {/literal}
  </code></pre>
  
  <p>this final webpage source is appearing, just like this, in the head, but still li tags aren't getting touched..</p>
  
  <pre><code>&lt;script src="{$content_dir}themes/pres2c/js/stripe/jquery-1.7.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          jQuery(document).ready(function(){
          jQuery(".block_content li:even").addClass("alt");
          });
      &lt;/script&gt;
  </code></pre>