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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:30:53+00:00 2026-05-26T15:30:53+00:00

Following case: the page is rendered with the following … <input class=textInput error id=accountMailaddress

  • 0

Following case: the page is rendered with the following …

<input class="textInput error" id="accountMailaddress" name="user[email]" size="30" type="text" value="some@mailaddress.com">

So I see an input with “some@mailaddress.com” already filled out.
If the user changes the text inside of it the value attribute of the input doesn’t change in my dom-inspector. So I assume it’s possible to test the text that the user just typed against the original value (in the value attribute).

How can I do so?

Thank you in advance.

more info …

e.g. I’m logging $('.textInput').val(); on every keypress, val(); always holds the current text the user enters. Do I just have to store the original value in a variable?

  • 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-26T15:30:54+00:00Added an answer on May 26, 2026 at 3:30 pm
    $('#accountMailaddress').val() == $('#accountMailaddress')[0].defaultValue
    

    also, defaultValue is cross browser compatible

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

Sidebar

Related Questions

I have the following script element in my web page: <script src=default.js type=text/javascript></script> Using
I have the following case: All boats have a boat type like shark ,
I have the following case where I want to accept the following routs '/type/view/23'
Consider the following case: public class A { public A() { b = new
The following test case fails in rhino mocks: [TestFixture] public class EnumeratorTest { [Test]
I have the following HTML containing a drop down list (single selection) <script type="text/javascript">
In my template, I have the following: <ul class=tabbed id=network-tabs> {% if user.is_authenticated %}
I have the following markup on page load: <select name=sel_billing_address></select> After page load that
I get a 404 error page when I try the following rule in htaccess:
Suppose the user try to access the following web page on my website http://something.com/hello/hi.php

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.