No title Revision 343137636138 (Mon Oct 26 2009 at 20:13) - Diff Link to this snippet: https://friendpaste.com/RerbcNubKq0mbzagcQOCq Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <script src="../libs/jquery.js" type="text/javascript" charset="utf-8"></script> <script src="../libs/pure2.js" type="text/javascript" charset="utf-8"></script> </head> <body> <table id="sale_items"> <tr class="sale_items"> <td><button class="void_item">X</button></td> <td> <span class="inventory_number"></span><br> <span class="category"></span> </td> <td><span class="description"></span></td> <td> <input class="quantity@value"> @ <input class="selling_price@value"> </td> </tr> </table> <input type="button" onclick="test()" value="test" /> <script> var data = [ { inventory_number: "I-9000", category: "[INV]", description: "testing", quantity: "1", selling_price: "19.99" }, { inventory_number: "I-9000", category: "[INV]", description: "testing", quantity: "1", selling_price: "19.99" }], template = $("#sale_items").compile(false, {sale_items:data}), test = function(){ $("#sale_items").render({sale_items:data}, template); }; </script> </body></html>