So, I have an input, I enter words for filter answers. My answers are my panel. I create an Array for register my answers.
var array = [];
But when I finish my loop, I want to innerHTML my datas who are in my Array. But I have a [object HTMLDivElement] because i push Object in Array. Ok my question is = How can I create an Array Object and push my panel in
var obj = {}
And How can I display them This code search in answer if the words exist
if (searchIndex > -1) {
If the answer exist , push the panel in my array and count how many answer he founds
array.push(panel);
countFound++;
}
When the loop is finish, exploit this data and display them
array1.forEach(function(element) {
// I dont know how is the method to exploit all data one by one
});