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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:21:40+00:00 2026-05-31T16:21:40+00:00

with the help of resources of stackoverflow, i have managed to make autocomplete on

  • 0

with the help of resources of stackoverflow, i have managed to make autocomplete on multiple fields as:

    $(function(){
        $('.auto_isrc').live('keyup.autocomplete', function(){
            var srs = "xtras/search_isrc.php";
            $(this).autocomplete({
                source: srs,
                dataType: "json",
                minLength: 2,
                select: function(event, ui) {
                    $("[col=isrc_id] input").val(ui.item ? ui.item.isrc_ID : "");
                    $("[col=ISRC] input").val(ui.item.ISRC);
                    $("[col=Track_Name] input").val(ui.item.Track_Name);
                    $("[col=ArtistName] input").val(ui.item.ArtistName);
                    $("[col=Track_Time] input").val(ui.item.Track_Time);
                    $("[col=Writer] input").val(ui.item.Writer);
                    $("[col=Publisher] input").val(ui.item.Publisher);
                    $("[col=TrackPLineYear] input").val(ui.item.TrackPLineYear);
                    $("[col=TrackPLineInfo] input").val(ui.item.TrackPLineInfo);
                    $("[col=TrackCLineYear] input").val(ui.item.TrackCLineYear);
                    $("[col=TrackCLineInfo] input").val(ui.item.TrackCLineInfo);
                },
                change: function(event, ui) {
                    $("[col=isrc_id] input").val(ui.item ? ui.item.isrc_ID : "");
                    if (ui.item) {
                        $("[col=ISRC] input").val(ui.item.ISRC);
                        $("[col=Track_Name] input").val(ui.item.Track_Name);
                        $("[col=ArtistName] input").val(ui.item.ArtistName);
                        $("[col=Track_Time] input").val(ui.item.Track_Time);
                        $("[col=Writer] input").val(ui.item.Writer);
                        $("[col=Publisher] input").val(ui.item.Publisher);
                        $("[col=TrackPLineYear] input").val(ui.item.TrackPLineYear);
                        $("[col=TrackPLineInfo] input").val(ui.item.TrackPLineInfo);
                        $("[col=TrackCLineYear] input").val(ui.item.TrackCLineYear);
                        $("[col=TrackCLineInfo] input").val(ui.item.TrackCLineInfo);
                    }
                }
            });
        });
});

my loaded grid looks like:

<tr id="1">
    <td col="ISRC" style="width: 116px; " class="editableCell"><input class="editableInput  " type="text"></td>
    <td col="Disc_Number" style="width: 31px; " class="editableCell"><input class="editableInput  " type="text"></td>
    <td col="Track_Number" style="width: 31px; " class="editableCell"><input class="editableInput  " type="text"></td>
    <td col="Track_Name" style="width: 156px; " class="editableCell"><input class="editableInput auto_isrc ui-autocomplete-input" type="text" undefined="" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></td>
    <td col="ArtistName" style="width: 100px; " class="editableCell"><input class="editableInput auto" type="text" undefined=""></td>
    <td col="Track_Time" style="width: 50px; " class="editableCell"><input class="editableInput undefined" type="text" onkeypress="return isNumberKey(event)" undefined=""></td> 
... </tr>
<tr id="2">...</tr>
    ... etc

now – autocomplete does work, but it applies to every <tr>, but i only need it to apply to the one i’m working on. how do i achieve this?

  • 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-31T16:21:41+00:00Added an answer on May 31, 2026 at 4:21 pm

    with a bit of help i resolved it as:

        var pid = $(this).parent().parent().attr('id');
    
                var srs = "xtras/search_isrc.php";
                $(this).autocomplete({
                    source: srs,
                    dataType: "json",
                    minLength: 2,
                    select: function(event, ui) {
                        $("#"+pid+" [col=isrc_id] input").val(ui.item ? ui.item.isrc_ID : "");
    ....
    

    got parent id, then applied changes to it’s children only

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

Sidebar

Related Questions

I have seen the other solution on stackoverflow but it does not help. I
Is there any help, resources, example or a tutorial available for putting fragments inside
I'm looking for any beyond basic resources that can help me to be proficient
I'm a student looking for resources which can help me further understand how to
Do any libraries or other development resources exist that can help reduce the effort
Help me translate following block of the Haskell code. The run function produces text
I am having difficulty coaxing the Help → Search function of my application to
First to thank you all for your great help, I have finally published my
I have googled the heck out of this topic, but I still need help.
For a little educational project intended as a community resource to help people learn

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.