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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:47:35+00:00 2026-06-09T09:47:35+00:00

I have two text boxes overlapping one another. The first text box, ‘TextBox1’, is

  • 0

I have two text boxes overlapping one another. The first text box, ‘TextBox1’, is defined by user input. The second, ‘TextBox2’, is populated by an AutoComplete functionality. My goal is to have the background of the first text box to be white ONLY for the text that has been typed so that the resulting ‘TextBox2’ only displays the remainder of the account name that gets returned.

Example: User types “ut tr” and the AutoComplete that gets stored in ‘TextBox2’ becomes:
“UT Training”. I have a text transform to capitalize the first letter of each word so after the transform (as the user types) “Ut Tr”.

When the input is overlapped with the results that are in ‘TextBox2’ the two do no match because of the difference in the case of the letter. This can cause major cosmetic problems in other examples.

So, if the background of the text for the input textbox, ‘TextBox1’, could be white, then the user would only see what they’ve typed, and the remainder of the Autocomplete.

Thanks for any help! This is my first post so I apologize if I’ve unknowingly done anthing taboo.

Here is a link to a video that shows how this looks: http://screencast.com/t/ef6dBJyU2X14

  • 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-09T09:47:36+00:00Added an answer on June 9, 2026 at 9:47 am

    You can check how many characters are now inputted by user, by something similar to:

    $('#myInput').on('keydown', function() {
        inputLength = $(this).val().length
    });
    

    ​And after that change color of the first N = inputLength characters in your auto complete to white. Probably, using substring:

    substring(0, inputLength);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my code, I have two text boxes that validate input as the user
i have two text boxes which the user should enter one of them i
I have two text boxes. one for login id and another is for password.
I have a form containing two text boxes for user input. Both text boxes
I have two input text boxes which are decimal. The sum of the two
I have a form with two text boxes, one select drop down and one
I have a user control in my wp7 application which contains two text boxes
I have a form with two text boxes, in one I want to show
I have two web pages: one consists of four asp.net text boxes and one
I have two text boxes and i want to send these two text box

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.