use class rather than data attribute.