JQuery: How to find an input with a value that is defined in a variable : <p>I have a list of HTML radio buttons each with their own value (say 1 - 10)</p>

<p>I also have a hidden field with a set value (say 5)</p>

<p>I want to find the input that has the value of the hiddenfield</p>

<pre><code>$('.block').each(function (index) {
    var hiddenVal = $('.myHiddenField').val();
    var inputWithHiddenVal = $(this).find('li input[value="5"]')
});
</code></pre>

<p>I want the input[value="5"] to use the hiddenVal variable</p>

<p>e.g.</p>

<pre><code>$(this).find('li input[value="hiddenVal"]')
</code></pre>
