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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:17:45+00:00 2026-05-31T00:17:45+00:00

I have a jQuery form wizard which I plugged to my website. What I

  • 0

I have a jQuery form wizard which I plugged to my website. What I am trying to do here is when the user reach the end point of the form, an alert in JavaScript popup to him. I tried this very simple JavaScript code at the top of my page <head>..some code</head>

function alertme() {
    if (this.value = "Submit") {
        alert("welcome");
    }
    else {
        return false;
    }
}

the HTML button that I am trying to run this function when the event OnClick() happen

<input class="navigation_button" id="next" value="Next" type="submit" onclick="alertme();" />

as you see the value now is Next, the problem here is my JavaScript function ignore the value and popup the alert whenever the button has been click during the form steps, how should I solve this problem?

  • 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-31T00:17:47+00:00Added an answer on May 31, 2026 at 12:17 am
    function alertme() {
        if (document.getElementById('next').value == "Submit") {
           alert("welcome");
        }
        else {
            return false;
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery Model windows which contains a form. On creating of the
I have a custom jQuery plugin which binds a change event to a form
I have a jQuery Dialog form and on submit I'm trying to validate the
I have the following jQuery: $(form).submit(function() { //DO STUFF HERE }); But, it's not
I have this code in the View: <script src=../../Scripts/jquery.form.js type=text/javascript></script> <script src=../../Scripts/jquery-1.5.1.js type=text/javascript></script> <script
I have jQuery creating a form dynamically and adding it to the end of
I have an AJAX powered form which is more like a 5 step wizard.
We have the HTML structure used with jquery-form-wizard: <form> <div class='page1'>...</div> <div class='page2'>...</div> ...
I have this jquery.ajax form which populates data from the database and auto fills
I have a method set up that uses jquery form for a file upload

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.