Operations in table data with javascript

Posted by Zangrandi on Stack Overflow See other posts from Stack Overflow or by Zangrandi
Published on 2010-12-23T21:28:09Z Indexed on 2010/12/23 21:54 UTC
Read the original article Hit count: 138

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about table