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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:22:38+00:00 2026-06-11T11:22:38+00:00

See my example below. I’m trying to enter Mike into the input and then

  • 0

See my example below. I’m trying to enter Mike into the input and then hit “remove input” to remove the input from the page. It doesn’t seem like the value is updated in the DOM when a user types a value. How can I get around this?

Example: http://jsfiddle.net/ZMSaD/

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

    The value is updated in the DOM and you can check this with alert($('#testing').val()); (#testing being the input you wish to remove.)

    However $("input[value='Mike']").remove(); seems to check the value of the HTML attribute as written in the source HTML. Bizarrely, the HTML attribute is not updated in this context.

    Try this counter intuitive example. Set value="foo" on your #testing input and type “Mike” into the control at runtime, then:

    alert($('#testing').attr('value'));    // Mike
    alert($('input[value="foo"]').val());  // Mike
    

    However, you can force it to update by explicitly assigning to the attribute on change:

    $('input').bind('change',function() {
        $(this).attr('value',this.value)
    });
    

    Then your original code will work.

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

Sidebar

Related Questions

I'm trying to run the example Gearman worker from their documentation (see below), but
Is it possible to remove a string (see example below) from a PHP array
I'd like to bind operator new (see example below). If the constructor doesn't have
everyone. Please see example below. I'd like to supply a string to 'schedule_action' method
Given the example source code below, is it possible for someone to see the
See example below. Using the __class__ prefix with the class instance 'object' gives the
I have a very specific deserialization need, see example below: say I have following
I have a LINQ Statement. It searches an XML file. (See example below) There
i'm having a problem while converting Timestamp objects to joda's LocalTime. See example below:
I often find myself using inline initialization (see example below), especially in a switch

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.