![]() |
values get hidden after beeing posted
I'm trying to to display the inputted data in the form using the addRow() function but i don't know why shortly after pressing the submit button the table quickly show and hides the values. Can anyone take a look in the code and tell me what i'm doing wrong , i think i'm loosing it here :-(
This is the code: Code:
<HTML> |
The submit button will refresh the page (reload it from server or cache). And the reloaded version will not contain the previously dynamically added rows.
To prevent the page from refreshing, you should "return false" and the function should be called onsubmit of the form instead of onclick of the submit button. Code:
<form onsubmit="addRow(); return false;"> |
| All times are GMT +1. The time now is 02:04 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.