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

  • Home
  • SEARCH
  • 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 1055907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:38:14+00:00 2026-05-16T17:38:14+00:00

I am using this autocomplete Plugin which works great but the problem is $(‘#request_song’).autocomplete({

  • 0

I am using this autocomplete Plugin which works great but the problem is

$('#request_song').autocomplete({
  serviceUrl: '<%= ajax_path("trackName") %>',
  minChars:1,
  width: 300,
  delimiter: /(,|;)\s*/,
  deferRequestBy: 0, //miliseconds
  params: { artists: 'Yes' },
});


<div class="field">
  <label for="request_song">Song</label><br />
  <input id="request_song" name="request[song]" size="30" type="text" />
</div>

This works well but is there a callback or something that will tell me when its complete and someone selected something. I basically want to show a div thats currently hidden on the page or call an action via ajax to get some info.. But how do i know when someone selected soemthing. I was thinking of seeing if the textbox losses focus but I dont know the syntax for that and I was thinking there should be a better way to do that with this plugin or Jquery

  • 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-16T17:38:15+00:00Added an answer on May 16, 2026 at 5:38 pm

    USE ONSELECT event

    $('#request_song').autocomplete({
      serviceUrl: '<%= ajax_path("trackName") %>',
      minChars:1,
      width: 300,
      delimiter: /(,|;)\s*/,
      deferRequestBy: 0, //miliseconds
      params: { artists: 'Yes' },
      onselect: function(value, data){
        //DO SOMETHING HERE
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin: http://jqueryui.com/demos/autocomplete/#remote Works great but I would like to use the
I'm using the Jörn Zaefferer's jQuery autocomplete plugin which works great, except for a
Recently I started using https://github.com/crowdint/rails3-jquery-autocomplete It works great, but I was trying to set
I am using this plugin: http://jquery.bassistance.de/autocomplete/demo/ I have an autocomplete textarea where the values
I am using autocomplete plugin in my form. I am using this autocomplete feature
i'm using this plugin for autocomplete http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete i want that when the user clicks
I'm using this script to display all the images in a folder, but I
I've been using the JQuery Autocomplete plugin with JQuery version 1.3.2, and it has
Let me clarify: I'm using standard jQuery autocomplete plugin (bassistanse.de) and bind it to
I am using the deprecated autocomplete plugin (since I'm using the legacy jquery lib

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.