Change data to attr so that selecting by attribute works