I am new to javascript and jquery.
I am trying to add html from a javascript function.
To place the contents of y at a specific location I am adding a div tag "Contacts" and trying to append elements to it.
But the contents of "y" are not being displayed.
My code:
componentHtml += "<div id = Contacts>";
var y = [ 1, 2, 3 ];
$("#Contacts").append(y);
componentHtml += "</div>