I raised a flag for this particular answer because the script contains
document.getElementById( 'list-home-list' );
and
document.getElementsByTagName('hb');
which are not at all related to the code which the OP had added along with the question. Since the person is new to Stackoverflow, I thought of adding a reason "Needs to be edited to explain what it is all about". I didn't feel that the code shared is related to the question asked.
Although document.getElementById is purely Javascript and used internally by JQuery, I think the answer is just a copy paste.
The flag got declined saying "Flags should not be used to indicate technical inaccuracies, or an altogether wrong answer". Is it advisable to let copy paste random code to remain there with this question? What could be a better way of addressing the issue if the flag I raised was wrong?
"I like ice cream"
, (completely unrelated) or"can you share code?"
(should be a comment),"I have this problem, too!"
(irrelevant to the question),"I tried X but got an problem with Y"
(new question), etc. Those are not answers. If somebody tries to solve OP's problem, even incorrectly, that's still an answer.