java
by Tushar Jadhav
HTML
<div id="fileInfo1">
<div style="clear:both;padding:5px;" class="fileRess" sizefile="206519" id="fileres_0">
<input size="1" type="file" class="file" name="attach[]" id="attacher" style="display:none" multiple="" value="undefined">206519 </div>
<div style="clear:both;padding:5px;" class="fileRess" sizefile="290284" id="fileres_1">
<input size="1" type="file" class="file" name="attach[]" id="attacher" style="display:none" multiple="" value="undefined">290284 </div>
</div>
<div id="result"></div>
JavaScript
var total = 0;
$('.fileRess').each(function () {
total += +$(this).attr('sizefile');
});
alert(total);