Jquery tree traversing not working
<p>I have a jquery variable that isnt working and it's most likeley because i don't know how to select elements properly.  I thought the below selectors would work, but they don't</p>

<p>JQUERY:</p>

<pre><code>$('.upVote').click(function(e){
    e.preventDefault();
    var ratebox = $(this).find('.ratingBox');  //this variable isnt working
    var answer_id = $(this).children('.record_id').attr('value');  //this one too 
</code></pre>

<p>HTML:</p>

<pre><code>&lt;p class='ratingBox'&gt; $answerrating[$f]&lt;/p&gt;
&lt;div class='answerBar'&gt;";
    &lt;a href='#' class='upVote vote'&gt;Upvote&lt;/a&gt; 
    &amp;middot;
    &lt;a href='#' class='downVote vote'&gt;Downvote&lt;/a&gt;  
    &lt;a class='answerTime'&gt; $difference $periods[$j] ago&lt;/a&gt;
&lt;/div&gt; 
&lt;input type='hidden' name='record_id' value='$answerid[$f]' class='record_id' /&gt;
</code></pre>
