0

Hey all i am trying to use my already array that i populated into the jQuery Source:

$(document).ready(function(){
    $("input#partSearchBox").autocomplete({
        source: [partNum]
    });
});

the partNum looks like this:

gh3423645,jh324332,iu45233,gk324456, etc etc...

And i can get to each data by doing this:

partNum[0] or partNum[3], etc...

How can i already use that array within the source? The code i posted above has no suggestions once i start typing?

Thanks!

David

1
  • is parnNum an array? it makes source an array of array Commented Jan 9, 2011 at 7:02

1 Answer 1

1

Since partNum is already an array, try using

source: partNum

instead of source: [partNum].

Sign up to request clarification or add additional context in comments.

1 Comment

Gerrr.. i knew i was over thinking it! Thanks Emmett! :o)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.