Rails Jquery compute total from selected checkboxes in a table
问题 So here is my rails view which has a form which pulls the product_items and lets the user check all the items they want to buy and display the total order amount underneath the table. (attached pic) My code looks like below. The server side is good (where I can save the order) but I need some help on the client side js to compute the order total and displaying the order total underneath the table. <tbody> <% @cause.product.product_items.each do |item| %> <tr> <td width="60%"><label class=