Create element attribute for popover