JQuery - Calling Function to a Div with the same class name
<p>I want to use the same class for div's as they serve the same purpose, although I cannot find a way to get it to work without outputing the same result to both of the div's.</p>

<p><strong>JavaScript</strong></p>

<pre><code>&lt;script src="jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
function divide(a, b) {
        $(this).text(a + " / " + b);
    }
&lt;/script&gt;
</code></pre>

<p><strong>HTML</strong></p>

<pre><code> &lt;body&gt;
 &lt;div class="division" &gt;&lt;script type="text/javascript"&gt;divide(3,7)&lt;/script&gt;
 &lt;/div&gt;
 &lt;div class="division" &gt;&lt;script type="text/javascript"&gt;divide(12,75)&lt;/script&gt;
 &lt;/div&gt;
 &lt;/body&gt;
</code></pre>
