Is it possible to name a jquery selector the value of a variable
<p>For example, if i had a variable in javascript</p>

<pre><code> var nombre;
 onclick="nombre='someValue'"
</code></pre>

<p>and somewhere along in my code this javascript variable's value is changed like above, could I set the value of that variable to be the class name in the jquery selector so it would be like</p>

<pre><code>$('.someValue').show()
</code></pre>
