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