
A chce zeby wygladalo to tak:

Grubosc ma byc od 2 cm do 12 i jak mozna to wytlumaczyc gdzie mam wpisac cene kazdego z nich
Bardzo bym prosil o pomoc!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript"> google.load("jquery", "1"); </script> <script type="text/javascript"> function update(){ var sum = 0; $("#calculator > tbody > tr").each(function(){ var price = parseFloat($(this).find("td:eq(2)").text()); var amount = parseFloat($(this).find("td:eq(3)").find("input:first").val()); var value = $(this).find("td:eq(4)"); if (amount > 0) { value.text(price*amount); sum += price*amount; } else { value.text(0); } }); $("#summary").text(sum); } $(document).ready(function(){ update(); $("#calculator input").keyup(function(){ update(); }); }); </script> </head> <body> <table id="calculator"> <thead> <tr> </tr> </thead> <tfoot> <tr> </tr> </tfoot> <tbody> <tr> </tr> <tr> </tr> </tbody> </table> </body> </html>