Código:
Espero haberme explicado. Gracias!!! <form> <p>Peso <input name="op1" type="text" size="10" maxlength="15" /> gramos</p> <p><br /> </p> <table width="92%" border="0" cellspacing="5"> <tr> <td>24k</td> <td>22k</td> <td>18k</td> <td>14k</td> <td>12k</td> <td>10k</td> <td>9k</td> </tr> <tr> <td><input name="total24" type="text" size="10" maxlength="10" /></td> <td><input name="total22" type="text" size="10" maxlength="10" /></td> <td><input name="total18" type="text" size="10" maxlength="10" /></td> <td><input name="total14" type="text" size="10" maxlength="10" /></td> <td><input name="total12" type="text" size="10" maxlength="10" /></td> <td><input name="total10" type="text" size="10" maxlength="10" /></td> <td><input name="total9" type="text" size="10" maxlength="10" /></td> </tr> </table> <p> </p> <p><br /> <input type="button" value="calcular" onclick=" var form = this.form; form.total.value = form.op1.value * 10; " /> </p> </form>