Hello, I am using a js library to help create an auto suggest table under an input. In this line of code, I see where they make the table:
a = document.createElement('table');
But it appends it to the document, an I really need to append it to a different element (id = "stockSearch"), so I tried:
a = document.getElementById('stockSearch').createElement('table');
Now I get error: Object #<HTMLDivElement> has no method 'createElement'
Is there a different method I should be using?