I need $(".className").each(function () with div. I can only get it to work with input
<p>The following jQuery code works if my tag is:</p>

<pre><code>&lt;input class="AmountElementValue" readonly="readonly" /&gt;
</code></pre>

<p>However, it does not work if I make the input a <code>&lt;div /&gt;</code>. The code is:</p>

<pre><code>$(".AmountElementValue").each(function () {
    alert($(".AmountElementValue").val());
    var TrimedAmountElementValue = $(this).val().replace(/\$/g, '');
    TrimedAmountElementValue = TrimedAmountElementValue.replace(",", "");
    totalDisbursement += parseFloat(TrimedAmountElementValue);
});
</code></pre>

<p>How can use a <code>&lt;div /&gt;</code> instead?</p>
