Example 1

Product Price Quantity Discount Subtotal

Convert Table 1

Code to convert table1

# HTML in the first row where the "th" is located <tr>
<th col="product">Product</th>
<th col="price" summary="max">Price</th>
<th col="quantity" summary="avg">Quantity</th>
<th col="discount">Discount</th>
<th col="subtotal" formula="price*quantity*(1 - 0.10 * discount)" summary="sum">Subtotal</th>
</tr>
# JavaScript
# $('#table1').grider({countRow: true, countRowAdd: true});