Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9225665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:38:10+00:00 2026-06-18T04:38:10+00:00

I have a HTML5 form which looks like this: <form id=myData> <p>Email <input type=email

  • 0

I have a HTML5 form which looks like this:

        <form id="myData">
            <p>Email
            <input type="email" title="myEmail" id="email" required />
            </p> 

            <p>Some Text
            <input type="text" title="myText" id="text" required />
            </p>

            <button type="submit" id="submitButton">Submit</button>
        </form>

Pressing the submit button then causes the form to disappear from the screen. I’m using the Navigation template for the app, although looking at the DOM Explorer, it doesn’t navigate away from the page, just gets rid of the form. This is obviously by design, but bizarrely I can’t find any reference to this functionality.

My question is: why does it do this, and how can I stop it, while still keeping the free validation that I get with the form?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:38:11+00:00Added an answer on June 18, 2026 at 4:38 am

    You can handle the form submitted event. Call preventDefault to keep the form from submitting to a form action that you haven’t defined, then handle the submission.

    ready: function (element, options) {
        document.getElementById("myData").addEventListener("submit", function (e) { 
            e.preventDefault(); 
    
            // handle your form submission here
    
        });
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML form that looks like this: <form action=index.php method=post> <input type=hidden
I have a webpage with a form, which looks kinda like this: @using (Html.BeginForm(MyAction,
So, I have a form, which looks like this: And, as you can see,
I have a WebParts.aspx page which looks like this - <%@ Page Language=C# AutoEventWireup=true
I have a MySQL table which looks like this: ID OPTION 1 First 2
So I have a file called WebParts.aspx which looks like this - <%@ Page
For instance, I want to have a html form that looks like this: <table>
I have a simple web page which looks like this. When clicked on the
I'm generating an html file which looks like: <tr id=ID001 property1=PROPERTY001><td><input type=checkbox name=row_checkbox_ID001></td><td>...</td><td>...</td></tr> <tr
I have a form, that looks like this (sorry for Haml and the german

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.