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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:32:52+00:00 2026-06-03T19:32:52+00:00

I have a simple form and inside there are two input fields text type.

  • 0

I have a simple form and inside there are two input fields text type.
for example if input has initially value like “Hello” and later on I have changed it to “Hi” and then I submit this form.

I want to see this both values, anyone suggest me please

markup

    <form action="index_submit" method="get" name="anil" > 
        <label for="first_name">first name</label><input type="text" name="first_name" value="" id="first_name">
        <label for="last_name">last name</label><input type="text" name="last_name" value="" id="last_name">
        <label for="user_name">user name</label><input type="text" name="user_name" value="" id="user_name">
        <input type="submit" name="submit" value="submit" id="submit">
        <input type="reset" name="reset" value="reset" id="reset">
    </form>

js

$(document).ready(function(){  
    $('form #submit').click(function(){
        var oldValue
        var newValue
    });   
}) 
  • 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-03T19:32:59+00:00Added an answer on June 3, 2026 at 7:32 pm

    You could put the initial value in a hidden field as well as the visible one, e.g.:

    <input type="text" name="greeting" value="Hello" />
    <input type="hidden" name="greeting-original" value="Hello" />
    

    Then you can do what you like with greeting and greeting-original when the form is submitted.

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

Sidebar

Related Questions

I have a simple form like this: <form name=serachForm method=post action=/home/search> <input type=text name=searchText
I have a simple form method... <form method=POST action=j_security_check> <table> <tr> <td>Name:</td> <td><input type=text
I have two buttons inside a form call: <% using (Html.BeginForm()) {%> <input type=submit
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input
I have simple form like this which accepts only two values string action and
Simple, I have a GridPanel and a FormPanel. Inside the form there is a
Have a simple form (only extract fields here) but for some reason the JQserilization
I have a simple form that looks like so <% remote_form_for post, :url =>
I have a simple form and would like to add a custom jQuery validation
I've got a form input that has sample search keywords inside. When the user

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.