Skip to content
Browse files

Merge branch 'master' of github.com:DLarsen/jquery-sumtr

  • Loading branch information...
2 parents a89f73f + 7a7437a commit cc7c3104ba1ef9fc99ec2c1b41d40592646fac46 @DLarsen committed Mar 28, 2012
Showing with 45 additions and 0 deletions.
  1. +45 −0 README.md
View
45 README.md
@@ -2,3 +2,48 @@ JQuery Sumtr
============
Allows you to summarize table rows with ease.
+
+Given the following markup:
+
+ <table id="myTable">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>First</th>
+ <th>Second</th>
+ <th>Third</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Bob</td>
+ <td class="sum">1</td>
+ <td>A</td>
+ <td class="sum">3</td>
+ </tr>
+ <tr>
+ <td>Henry</td>
+ <td class="sum">5</td>
+ <td>B</td>
+ <td class="sum">9</td>
+ </tr>
+ <tr>
+ <td>Janet</td>
+ <td class="sum">1</td>
+ <td>C</td>
+ <td class="sum">3</td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr class="summary">
+ <td>Total:</td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ </tfoot>
+ </table>
+
+Just apply the plugin as follows
+
+ $('#myTable').sumtr();

0 comments on commit cc7c310

Please sign in to comment.
Something went wrong with that request. Please try again.