Make jquery selector dynamic : <p>I need to create a jquery selector dynamically by concatenating a function input <code>id</code> onto the str "a"  </p>

<pre><code>eval(0);

function eval(id) {
    var a = id + 1;
    a = "a" + a;
    $("input[name='a']").val(response.success);
}
</code></pre>

<p>How can I make this not just search for the input with name <code>a</code>, but for input with the name of variable <code>a</code></p>
