How to check if a text variable is contained within another variable
<p>just wondering how I can check to see if a text variable is contained within another variable. like </p>

<pre><code> var A = "J";

 var B = "another J";
</code></pre>

<p>something like :contains but for variables.</p>

<p>thanks</p>
