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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:44:38+00:00 2026-06-04T04:44:38+00:00

Example I had 2 html input <div class=wrap> <input class=autocomplete name=auto_1 /> <input class=autocomplete

  • 0

Example I had 2 html input

<div class="wrap">        
   <input class="autocomplete" name="auto_1" />
   <input class="autocomplete" name="auto_2" />
</div>

The auto_1 and auto_2 is using auto complete by jQuery UI and triggered when document ready $(function(){})

And then if we click a button on my website, there will be another one button. Added by function $('.wrap').append('<input class="autocomplete" name="auto_3" />')

And now total there will be 3 input

<div class="wrap">        
   <input class="autocomplete" name="auto_1" />
   <input class="autocomplete" name="auto_2" />
   <input class="autocomplete" name="auto_3" />
</div>

But the autocomplete function is not running on auto_3 because it’s newly added.

How to make it running/use autocomplete?

  • 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-04T04:44:40+00:00Added an answer on June 4, 2026 at 4:44 am

    I think the problem is not with click on new input but with autocomplete on new input. When you add new element with

    $('.wrap').append('<input class="autocomplete" name="auto_3" />')
    

    You must attach autocomplete to this new field, so

    $('input[name="auto_3"]').autocomplete();
    

    Or make autocomplete with livequery plugin: https://stackoverflow.com/a/4551313/657584

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

Sidebar

Related Questions

For example, in the following HTML ... <form name=outerform> <input type=text name=outer1/> <input type=text
I am using the code from here: http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-mobile-example.html#basic_map My only problem is that I
For example, suppose I had written my own class which allowed me to record
Example code: <html> <head> <script src=jquery-1.3.2.min.js type=text/javascript></script> <script src=jquery-ui-1.7.1.custom.min.js type=text/javascript></script> </head> <body> <table border=1
I've been trying to get this really simple example of using AJAX with JQuery
I have the following HTML page: <div id=foobar> <?php echo $dynamicVar; ?> </div> <input
For example: <input name=abutton type=button value=This is not a button /> I know this
Say for example you had a shell script that utilises inotifywait in the following
For example if I had one or more 2D vectors and I just want
I would like to generate a combination of words. For example if I had

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.