1

I'm using Javascript/HTML/CSS to create a web tool for my final project. The way my page is set up, I have information in a div element on the left side of the page, and an input table on the right side of the page.

When the table is submitted, I'm using a .html call ($("#right").html(html);) to replace the html in my right div with an image. When I submit the form, my page shows as expected, but only for a split second before refreshing to the original index.html.

I have this problem even when using an innerHTML tag instead, and when adding return false to my onsubmit. How can I make this page layout/content change permanent (until changed again)?

2

I just figured it out! The reload was due to the very nature of onsubmit. When I changed it to onClick, I had no issues!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .