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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:46:48+00:00 2026-06-10T05:46:48+00:00

I am trying to simulate what Zendesk does in their signup form for the

  • 0

I am trying to simulate what Zendesk does in their signup form for the subdomain. As the user starts to type a subdomain, it automagically adds “.zendesk.com” in a different color to what the user is typing.

It appears that it’s another div that is positioned, but I have no idea how they are positioning it perfectly after the typed input AS the user types.

I’m using jQuery 1.7.

  • 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-10T05:46:49+00:00Added an answer on June 10, 2026 at 5:46 am

    A simple way of doing it would be to have an input at the same position mirror the actual input the user is typing in and just add the string to the end of the value on change.

    So you have

    <input class="mirrorInput" disabled="disabled"></input>
    <input class="realInput"></input>​
    

    with

    .realInput{
        position: absolute;
        left: 0;
        background: none;
    }
    
    .mirrorInput{
        position: absolute;
        left: 0;
        color: green;
        background: white;
    }
    

    and the JS is simply

    $(".realInput").on("keyup", function(event){
        $(".mirrorInput").val($(".realInput").val() + ".zendesk.com");
    })
    

    Here’s a fiddle showing how it could 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 simulate what Yelp does with their Mo Map . I know
I'm trying to simulate the user location animation in MapKit (where-by the user's position
I'm trying to simulate a user click on a Google Map, using API v3,
I'm trying to simulate a floating modal box type thing but having an issue
I am trying to simulate a POST to a form on an external server
I am trying to simulate a form submission on an ASPX.NET site. The flow
I'm trying to simulate a user clicking an element by using: el = document.getElementById('#inputToClick');
I'm trying to simulate some software and I need the user to be able
I m trying to simulate a tree type comparator for synthesis. It has two
I am trying to simulate a post request by creating form elements on the

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.