$('[data-expand-tags-list]').append("
  • \nwar<\/a>\n<\/li>\n
  • \nworld war i<\/a>\n<\/li>\n
  • \nworld war one<\/a>\n<\/li>\n"); $('[data-expand-tags]').remove();