1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JS Autocomplete

Discussion in 'XenForo Development Discussions' started by xf_phantom, Sep 3, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    Is there any way to use the returned string as value?

    I'm returning
    Code:
    {"results":["Foo","Foo2","Foo3"
    and when i click on the result to insert it into the autocomplete field, it just inserts the current results index into the inputfield.

    To save traffic:cool: i want to avoid to return because it's IMO useless:p
    Code:
    {"results":{"Foo":"Foo","Foo2":"Foo2"
    
     

Share This Page