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 7544821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:46:20+00:00 2026-05-30T08:46:20+00:00

Here’s my code : <form name=’frm’ id=’frm’ action=’load.asp’ method=’post’ onSubmit=’return OnSubmit(this)’ style=’margin-top:15px’> <input type=’submit’

  • 0

Here’s my code :

<form name='frm' id='frm' action='load.asp' method='post' onSubmit='return OnSubmit(this)' style='margin-top:15px'>
    <input type='submit' name='send' id='send' onclick="this.disabled=true;return true;" value='Send' title='test'>
</form>

I want my onsubmit function to be executed and I want the page to be submited.
In my website, no submit and no function

I’ve tried to duplicate it here, but the form seems to be posted and my function never gets executed …
http://jsfiddle.net/V7B3T/1/

And I don’t know when I should reactivate the button.

Should I do it in the document.ready, or in the onSubmit function ?

So if someone can fixed the fiddle 🙂 and after that I’ll compare it with my code.
I think :S I’m lost

Thanks all

  • 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-05-30T08:46:22+00:00Added an answer on May 30, 2026 at 8:46 am

    If you want to validate the form or make any changes the before submitting and only submit if the form is valid you can do something like this:

    <form id="frm" action="load.asp" method="post" enctype="multipart/form-data">
        <input type="submit" name="send" id="send" value="Send" title="test">
    </form>
    

    and the JavaScript code:

    $('#frm').bind('submit', function (e) {
        var button = $('#send');
    
        // Disable the submit button while evaluating if the form should be submitted
        button.prop('disabled', true);
    
        var valid = true;    
    
        // Do stuff (validations, etc) here and set
        // "valid" to false if the validation fails
    
        if (!valid) { 
            // Prevent form from submitting if validation failed
            e.preventDefault();
    
            // Reactivate the button if the form was not submitted
            button.prop('disabled', false);
        }
    });
    

    Here’s a working fiddle.

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

Sidebar

Related Questions

Here my code: $(document).ready(function() { $('#mid_select').live('click', function(e){ $('#middle').load( $(this).attr('href') + ' #middle'); var page
Here is my code, which takes two version identifiers in the form 1, 5,
Here is my problem : I have a post controller with the action create.
Here's what I'm trying to accomplish with this program: a recursive method that checks
here is javascript code: var test = { h : function (a) {return a;},
Here is my code. When I run this I get an error saying :
Here is the code: http://jsfiddle.net/GKBfL/ I am trying to get collection.prototype.add to return a
Here's a problem I ran into recently. I have attributes strings of the form
Here's a coding problem for those that like this kind of thing. Let's see
Here is an example. foreach (var doc in documents) { var processor = this.factory.Create();

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.