I wrote a short jQuery script to add alt text to A tags using their title attribute values.
var anchors=$('a.className');
anchors.each(function(){ //CYCLE THRU EACH SUBCAT ON PAGE
var title=$(this).attr('title'); //GET TITLE VALUE
$(this).attr('alt',title); //SET TITLE VALUE TO ALT ATTRIBUTE
});
It works perfectly but I'm concerned it may not serve its purpose. Does adding alt tags in this way help with SEO? Do engines like Google care if an alt tag is generated AFTER the page has already loaded? Is there a way around this?
FYI: I know it is very simple to just add an alt tag usually, but in my case, that doesn't seem to be an option.