javascript get data-id from targeted event code example Example: event target data atributes event.target.getAttribute("data-sortorder");