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

  • SEARCH
  • Home
  • 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 9240949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:16:35+00:00 2026-06-18T08:16:35+00:00

In our app, we recently adopted an improved GUI style. Originally, our form submit

  • 0

In our app, we recently adopted an improved GUI style. Originally, our form submit links were similar to the following:

<input type=submit class="some-style" name="Command" value="Save" />

However, we’re trying to use the following instead:

<input id='hiddenSaver' type="hidden" name="Command" value="Save" />
<a id='saveButton' href="#" class="some-style"><i class="some-icon"></i> Save</a>

<!-- SNIP: Extraneous other stuff -->

<script>
var $saveButton = $('saveButton'),
    $hiddenSaver = $('hiddenSaver');

$(document).ready(function () {
  $saveButton.click(function () {
    $saveButton.preventDefault();
    $hiddenSaver.submit();
  });
});
</script>

Yet our forms do not submit…in fact, they just don’t do anything. What are we missing?

  • 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-18T08:16:35+00:00Added an answer on June 18, 2026 at 8:16 am

    You are calling the .submit() on an input field not a form. Below is an excerpt from the jQuery documentation:

    The submit event is sent to an element when the user is attempting to submit a form. It can only be attached to <form> elements. Forms can be submitted either by clicking an explicit <input type="submit">, <input type="image">, or <button type="submit">, or by pressing Enter when certain form elements have focus.

    Refer to the jQuery API page for .submit() here:

    jQuery .Submit()

    Try attaching the .submit() to the form you’re submitting. Also take not of what inputs, they recommend for submitting a form. I’m not sure if you can do it with your anchor tag. You could certainly use:

    <button type="submit">Submit</button>
    

    I know you are using a new GUI but with some CSS styling you could get the button to look pretty nice.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently one of our app servers went down, when it was rebooted the Python
Recently, updated my app v1.0 to v1.0.1. Then one of our tester said 'Lost
Our app is a simple portal (will be deployed as azure webrole) with following
Until recently, our app did not specify a doctype. Then, to make the app
Hello we have developed our first enterprise app recently. We are using the In-House
My company recently deployed our first Silverlight app, and, as expected, we've had a
We recently upgraded our rails app from version 3.0.3 to 3.1.0. The application runs
We're developing an app on Ruby 1.9.3 and Rails 3.2.1. Recently, our unit tests
We recently upgraded our app from Grails 1.3.7 to 2.1, which builds under maven,
we are having a problem with our recently installed web app. It allows users

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.