$('[data-expand-tags-list]').append("
  • \nmother<\/a>\n<\/li>\n
  • \noperating theatre<\/a>\n<\/li>\n
  • \nsurgeon<\/a>\n<\/li>\n
  • \nsurgery<\/a>\n<\/li>\n"); $('[data-expand-tags]').remove();