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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:33:42+00:00 2026-06-07T11:33:42+00:00

I want to create multi autocomplete but i can just created single one. It

  • 0

I want to create multi autocomplete but i can just created single one.
It has to work with different query.
My code like this.

  $(document).ready(function(){
   $("#arama").keyup(function(){
    data_getir($(this).val());
   });
  });
  function data_getir(aranan)
  {
    $.ajax({
      type: "POST",
      url: "web.asmx/oku?aranan=" + aranan, //web service ve methodumuz
      data: "{adres:'complete.ascx'}",
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: function(msg){
        $("#goster").html(msg.d)
      }
    });
  }
  function sec(kontrol){$("#arama").val($(kontrol).html()); $("#goster").html("");}




<div>
  <input id="arama" type="text" style="width:150px; height:20px; font-size:11pt;" />
  <div id="goster"></div>
</div>

And js: jquery-1.2.6.pack.js

How can i use it with another query in same page ?

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

    just generate a new function and bind it to the other input you want to use as autocomplete field, there’s no limit to how many autocomplete you can have in one page.

    $(document).ready(function(){
       $("#arama").keyup(function(){
        data_getir($(this).val());
       });
    
       $("#autocomplete_bis").keyup(function(){
        data_getautocomplete_bis($(this).val());
       });
      });
      function data_getir(aranan)
      {
    
      }
    
     function data_getautocomplete_bis(aranan){
     $.ajax({
          type: "POST",
          url: "web.asmx/oku?new_query=" + aranan, //web service ve methodumuz
          data: "{adres:'complete.ascx'}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function(msg){
            $("#autocomplete_bis_goster").html(msg.d)
          }
        });
    }
      function sec(kontrol){
    $("#arama").val($(kontrol).html()); 
    $("#goster").html("");
    }
    
    
    <div>
      <input id="arama" type="text" style="width:150px; height:20px; font-size:11pt;" />
      <div id="goster"></div>
      <input id="autocomplete_bis" type="text" style="width:150px; height:20px; font-size:11pt;" />
      <div id="autocomplete_bis_goster"></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a multi-cllient client-server program in which the server has separate
I have multi-thread application that I want to create a thread with different user
I want to create maven multi module project, but it should not like normal
I want to create a multi-user application, but I don't know how to save
I want to create a multi-dimensional array from a single dimensional array in java.
I want to create a multi-module (maven) spring MVC application, with modules like: web
I want to create a multi-tenant application that uses the hostname to determine the
I want to know what framework/Interface/API's Set is best to use to create multi-process
I want to create App that Make My Device with multi-Users username and password
I'm using jstree to create a multi-level tree, and I want to be able

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.