There is such a piece of code:
element.closest('.comment').after(commentItem) It adds some commentItem content (contains HTML) after element. Content is a div block, how to add a new class to this created block?
There is such a piece of code:
element.closest('.comment').after(commentItem) It adds some commentItem content (contains HTML) after element. Content is a div block, how to add a new class to this created block?
Source: https://ru.stackoverflow.com/questions/320643/
All Articles