Use legendSpecificAttrs option to apply specific attributes to the legend elements

Alternative content for the map
Alternative content for the legend
Alternative content for the legend

All example for jQuery Mapael are available here.