Change multiple div contents based on same classname?
<p>I have unique id's for these but I want to change all div's with class="on" to contents "Goodbye". Is there a way to do this without having to call to each id individually?</p>

<p><strong>This...</strong></p>

<pre><code>&lt;div class="on" id="1"&gt;Hi&lt;/div&gt;
&lt;div class="random" id="2"&gt;Hi&lt;/div&gt;
&lt;div class="on" id="3"&gt;Hi&lt;/div&gt;
</code></pre>

<p><strong>...would look like this.</strong></p>

<pre><code>&lt;div class="on" id="1"&gt;Goodbye&lt;/div&gt;
&lt;div class="random" id="2"&gt;Hi&lt;/div&gt;
&lt;div class="on" id="3"&gt;Goodbye&lt;/div&gt;
</code></pre>
