Output value as a data attribute