I am working on the below code. Why am I not getting the sum of the .app cells?
var total = 0;
$(".app").each(function() {
total += parseInt($(this).val());
});
$("#total").html(total);
#total {
height: 100px;
width: 100px;
padding: 15px;
color: #fff;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td class="app">50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td class="app">94</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td class="app">94</td>
</tr>
</table>
<br />
<div id="total"></div>