dzisiaj mam coś takiego
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <script type="text/javascript"> function pro(wellf,skillf){ var wellness = 1 + 2 * (wellf / 100); var productiv = 0.25 * skillf * 2 * wellness * 2 * 1.5; document.getElementById('prod').innerHTML = productiv; } </script> </head> <body> <form action="" method="POST"> <table > <tr> <td> Wellness </td> <td width=65> <input type="text" name="well" size="5"/> </td> <td > Skill </td> <td width=65> <input type="text" name="skill" size="5"/> </td> <td> Productivity</td> <td > <input type="text" name="prod" size="5" /> </td> </tr> </table> </form> </body> </html>
jak należy to zrobić, aby po naciśnięciu przycisku Calculate w "<input type="text" name="prod" size="5" />"pojawil sie wynik z funkcji? (bez odświeżania strony ofc )