Using a variable when traversing elements in JQuery
<p>Very quick and hopefully simple question.</p>

<p>I am trying to select a hidden input by value with some predefined variable.</p>

<pre><code>var id = $("#puid").val();
$('input[value=id]').closest('tr').css({'background-color':'red'});
</code></pre>

<p>I thought the above code would have worked, however its not processing id as a variable. What is the right notation to do this? (I have tested the code by replacing id with the actual number and the rest of the code works fine).</p>
