115
rated 0 times
[
121]
[
6]
/ answers: 1 / hits: 5178
/ 11 Years ago, sat, january 11, 2014, 12:00:00
I need help with auto counting (without refresh) javascript/jquery function which let me count me by the formula:
Chance = Sum (input by person) * Number.
The problem is, that is a lot of fields, about ~100, but i need to calculate the Chance for every separately.
Here is the code, for question to be understood:
<table>
<tr>
<th></th>
<th>Name</th>
<th>Number</th>
<th>Chance</th>
<th>Sum</th>
</tr>
<tr>
<td><input type=checkbox name=check[] value=id1 /></td>
<td>test1</td>
<td>0.5</td>
<td><span id=chance1 >NEED AUTO VALUE AFTER COUNTING HERE!</span></td>
<td><input type=text onkeyup=some function? name=sum1 /></td>
</tr>
<tr>
<td><input type=checkbox name=check[] value=id2 /></td>
<td>test2</td>
<td>0.7</td>
<td><span id=chance2 >NEED AUTO VALUE AFTER COUNTING HERE!</span></td>
<td><input type=text onkeyup=some function? name=sum2 /></td>
</tr>
<tr>
<td><input type=checkbox name=check[] value=id3 /></td>
<td>test3</td>
<td>0.9</td>
<td><span id=chance3 >NEED AUTO VALUE AFTER COUNTING HERE!</span></td>
<td><input type=text onkeyup=some function? name=sum3 /></td>
</tr>
</table>
More From » jquery