Answer the question
In order to leave comments, you need to log in
Why can't I add an element with an attribute to an array?
I'm tormented by adding elements with a certain attribute to the array, although I seem to be doing everything right. I'm using the autocomlect library, can it interfere? Tell me where is the mistake?
here is the code:
var masiive = []
masiive.push(($('<li>').attr("data-context-key"));
alert(masiive)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question