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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:19:05+00:00 2026-06-15T13:19:05+00:00

When I click on the submit button input type=submit id=submit value=Save. it starts uploading

  • 0

When I click on the submit button “input type=”submit” id=”submit” value=”Save””.
it starts uploading a file that I selected from my hard disk.
this all doesnt matter though, because I made a div with the text “uploading”
and the style of that div is visibility:hidden;
now what I want is that when I click on the submit button (the time when the file starts uploading) that the div becomes visible, I’ve tried several things including
” How can I display a status message while a file is uploading? ” but no luck, could be just me but I am fairly new to jQuery so I would appreciate some help.

Thanks

EDIT: I tried the all the codes below, but nothing worked, I also tried

$('#editform').submit(function() {
        $('#loadingdiv').show();
        return true;
    });

(editform being the form ID that I’m working in)
but no luck, does anyone know why this is happening?

My whole edit page below

@using (Html.BeginForm("Edit", "Admin",FormMethod.Post, new { enctype = multipart/form-data", id = "editform" })){
@Html.EditorForModel()
<div class="editor-field">
    @if (Model.ImageData == null)
    {
        @:None
    }
    else
    {
        <img width="150" height="150"
             src="@Url.Action("GetImage", "Product", new { Model.ProductID })" alt="bic boii" />
    }
    <div>
        Upload nieuw image: &nbsp; &nbsp; &nbsp;
        <input type="file" name="Image" />
    </div>
</div>

<div>
    Upload nieuw document:
    <input type="file" name="Pdf" />
</div>

<script type="text/javascript">
    $('#editform').submit(function() {
        $('#loadingdiv').show();
        return true;
    });

</script>
<input type="submit" id="submit" value="Opslaan" />
@Html.ActionLink("Ga terug", "Index")
<div id="loadingdiv">
    Bezig met uploaden.
</div>}

hmm, after putting a breakpoint on my form, it just skips my script completely, I’m not sure what that is about

  • 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-15T13:19:06+00:00Added an answer on June 15, 2026 at 1:19 pm
    $("#submit").click(function () { $("#yourContainerId").show(); });
    

    This says: When submit button is clicked launch a function where you select the div where the message is contained (whose id I’ve called here yourContainerId) and show it.

    If it doesn’t work it should return an error that might help us to know what is happening. Also it could be easier if you post your client code on the question. Maybe there’s some error on your code that’s stopping the execution from reaching the code where you try to show your message.

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

Sidebar

Related Questions

i have this code <input type='submit' name='sub_form' value='Save'> and <a href=# class=close>Cancel</a> and the
The following code does not submit the input values: $('.button').live('click', function() { var date
when I click submit button it shows the validation right but after that alert
I have a submit button when i click on that button i am having
The problem: when the input type on my submit button is changed to 'button'
Here is my jQuery code: <script type=text/javascript> //<!-- $(document).ready(function() { $('input[type=submit]').click(function() { $.ajax({ type:
I am updating multiple records and after I click submit button I get the
I am getting this error when I click my submit button Microsoft JScript runtime
i have this form to serialize once i click the submit button, <form class=cashier_forms
I have a website where I have to click a submit button on a

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.