I have a form with multiple inputs. I'm trying to specifically send text inputs to a function and have the function return the var as a table. I am able to send the input and return a table, but the table only appears for a brief second when I click a submit button, then the page seems to refresh. I have the submit input set to onclick="function()".
Does anybody have any ideas as to why after I click submit, the page refreshes and I loose the data in the table? I would appreciate some ideas of what the proper way is to go about this problem. Thanks in advance.