add a class to each TD in SQLFORM.grid identifying it by table_fieldname

I think it would be handy for jquery purposes to have the columns in SQLFORM.grid identified by class. 
This is my attempt at doing it. Note that I'm not sure that field.tablename + '_' + field.name is always a legal CSS class name.