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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:32:25+00:00 2026-06-13T11:32:25+00:00

Problem solved. Code is correct. It is the interaction between Angularjs and Jquery. Will

  • 0

Problem solved. Code is correct. It is the interaction between Angularjs and Jquery. Will work if you are only using Jquery

I am trying to add an extra checking method in my form submit. I am using the Jquery submit function here

Below is my code

HTML

<form id="upload_form" action="javascript:console.log('submitted');">
<table class="tablestyle">
    <tr>
        <td class="labelstyle" style="width:80px;">File</td>
        <td class="datastyle">
<input type="file" class="textinput" tabindex="7" id="file" name="file">
<input id="upload" name="upload" class="button" value="Upload" tabindex="8" type="submit"></td>
    </tr>   
</table>    
</form>

Javascript

$("#upload_form").submit(function() {
    console.log("checking");
});

however, when i submit, only the “javascript:console.log(‘submitted’);” is printed in my console. Can’t get the “console.log(“checking”);” to work.

Anyone knows what is the issue?

Any help is appreciated! Thank you.

  • 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-13T11:32:26+00:00Added an answer on June 13, 2026 at 11:32 am

    There is no error on your code.

    I have created a fiddle to prove that with your code : http://jsfiddle.net/tzjcA/

    All log messages are printed

    $("#upload_form").submit(function() {
        console.log("checking");
    });​
    

    EDIT

    Press F12 then “console” tab

    EDIT 2

    Precise enctype method and remove javascript:console.log('submitted');

    <form id="upload_form" enctype="multipart/form-data" method="post">
    <table class="tablestyle">
        <tr>
            <td class="labelstyle" style="width:80px;">File</td>
            <td class="datastyle">
    <input type="file" class="textinput" tabindex="7" id="file" name="file">
    <input id="upload" name="upload" class="button" value="Upload" tabindex="8" type="submit"></td>
        </tr>   
    </table>    
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: SOLVED. Correct code below the problem code. I'm having trouble getting my code
I solved Problem 10 of Project Euler with the following code, which works through
I am trying to solve the problem Secret Code on SPOJ , and it's
I'm trying to solve the problem here but I don't know why my code
I'm trying to solve this problem, its not a homework question, its just code
I am trying to solve this exponentiation problem . Here is the code that
I have a site that has an IE8-only problem: The code is: var w
EDIT: Problem solved by using $i+1 in function call. I have trouble using variables
Edit: I solved my problem but if you have anything to add please do.
I'm trying to adapt a code in order to add a sound capture feature

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.