how to select a parent in an older version of Jquery
<p>I have a function here that finds the sibling(answerfields) of the parent(li) then counts the child inputs.</p>

<pre><code>$('#addAnswer').live('click', function(){
    var selected = $(this).parents('li').siblings('#answerFields').children('input').length;
    document.getElementById('legend').innerHTML = selected;
});
</code></pre>

<p>How can i shorten this up using Jquery 1.5.2?</p>

<p>I have a working <a href="http://jsfiddle.net/rayd360/bPp8a/" rel="nofollow">JSFiddle</a>.</p>
