javascript - Why am I unable to push these results to an array? -


i'm trying change

results = $("x", xmlresponse).map(function() {

to

results.push = $("x", xmlresponse).map(function() {

but doing prevents autocomplete suggestions appearing.

if remove "push" again, autocomplete suggestions appear correctly no issue.

how can use results.push here?

use .get() return array .map()

results = $("game", xmlresponse).map(function() {     return {         value: $("gametitle", this).text()                 + ", "                 + ($.trim($("releasedate", this).text()) || "(unknown date)")     }; }).get() 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -