How to check class name in JavaScript or jQuery, and reload to another URL
<p>I have this code.</p>

<pre><code>&lt;div class="1st-class"&gt;&lt;/div&gt;
</code></pre>

<p>and I have a button, when I click it, the div will be like this.</p>

<pre><code>&lt;div class="1st-class goto"&gt;&lt;/div&gt;
</code></pre>

<p>Now, how can I check the div if the class name has <code>goto</code>?</p>
