Operations in table data with javascript
- by Zangrandi
I'm working with rails and I don't know javascript. I have a table with a select_tag field and I want to have another field that capture the option selected, multiply for the price captured in another field and display the total. Like this
<table>
<tr>
<td>(select_tag)</td>
<td>price</td>
<td>total</td>
</tr>
</table