1
Personal how can I multiply the total value of the lines being that I want to multiply value by value of each line
var bloco1 = $("table tr").find("td").eq(0).val();
var bloco2 = $("table tr").find("td").eq(1).val();
var bloco3 = $("table tr").find("td").eq(2).val();
var valor = eval(bloco1) * eval(bloco2) * eval(bloco3);
$("#result").html(valor);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table border="1">
<tr>
<th>exe</th>
<th>coluna2</th>
<th>coluna3</th>
<th>coluna4</th>
<th>coluna5</th>
</tr>
<tr>
<th>linha1</th>
<td><a href="#">10</a></td>
<td><a href="#">20</a></td>
<td><a href="#">15</a></td>
<td><a href="#">5</a></td>
</tr>
<tr>
<th>linha2</th>
<td><a href="#">20</a></td>
<td><a href="#">28</a></td>
<td><a href="#">12</a></td>
<td><a href="#">11</a></td>
</tr>
<tr>
<th>linha3</th>
<td><a href="#">3</a></td>
<td><a href="#">5</a></td>
<td><a href="#">2</a></td>
<td><a href="#">8</a></td>
</tr>
</table>
<p id="result">Resultado: </p>
Multiply column value ? how would this be?
– Gabriel Rodrigues
Didn’t I understand, you that the value of lines or the value contained in the lines? found the question a little confusing
– user3010128
user3010128 - I want to take the values contained in the lines and multiply row by row. exe: 10 * 20 = 200 - 200 * 3 =600
– pedroandre