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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:02:38+00:00 2026-05-31T03:02:38+00:00

I have 2 text fields. I need to fill the value from the first

  • 0

I have 2 text fields. I need to fill the value from the first text field into the second text field.

I managed to do this with the below code but the problem is that it does not work perfectly as I think I am using the keyup function.

What I mean is the second text field gets the value if a type in the value in the first text field but if I select a listing in the first text field as this is ajax enabled it does not work. Below is my code.

$('#edit-nodequeid').keyup(function() {

    val = $('#edit-nodequeid').val();

    $('#edit-container-name').val(val);
});

Below is a screen shot

http://imagebin.org/202888

pls help,
vishal

  • 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-31T03:02:39+00:00Added an answer on May 31, 2026 at 3:02 am

    What exactly do you mean by “ajax enabled”, and the browsers auto complete/fill is not ajax?

    It it is Ajax you can delegate the handler:

    $(document).('keyup', '#edit-nodequeid', function() {
        val = $('#edit-nodequeid').val();
        $('#edit-container-name').val(val);
    });
    

    If the problem really is that the keyup event is not fired because no keys are pressed when selecting an autofill value, then just use another event, or multiple events, like so:

    $('#edit-nodequeid').on('keyup paste change click whatever', function() {
        $('#edit-container-name').val(this.value);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 6 different select boxes and a text field which I need to
I have three text fields: first name, last name, and age, also a photo.
I have developed an app that allows the user to fill out text fields
I need to read data from a text file where the field lengths and
I have about 20 text fields on a form that a user can fill
I have two text fields in my view. I did it using IB. My
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
In my application, in an activity i have 4 edit Text fields and a
I have n number of text fields named in the form Question...... How can
I have one form with several text fields and one button. When i enter

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.