File: examples/simple.html

Recommend this page to a friend!
  Classes of Emil Kilhage   jQuery Aggregate   examples/simple.html   Download  
File: examples/simple.html
Role: Example script
Content type: text/plain
Description: Example
Class: jQuery Aggregate
Calculate an element with values of input elements
Author: By
Last change: Update of examples/simple.html
Date: 2 years ago
Size: 989 bytes
 

Contents

Class file image Download
<!doctype html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="../test/jquery.js"></script> <script src="../jquery.aggregate.js"></script> </head> <body> <center> <h2></h2> <table> <thead> <tr> <td></td> <td></td> <td></td> <td>Amount:</td> </tr> </thead> <tbody> <tr> <td><input class="aggregate_sum_from" value="1" /></td> <td><input class="aggregate_sum_from" value="5" /></td> <td><input class="aggregate_sum_from" value="2" /></td> <td><span id="aggregate_sum_to"></span></td> </tr> </tbody> </table> <script> $(function() { $(".aggregate_sum_from").aggregate("#aggregate_sum_to"); }); </script> </center> </body> </html>