[Dojo-interest] RE: assign style to a span

Ross Thomas dojo at boscorama.com
Fri Jan 26 14:15:10 MST 2007



Rose, Ryan wrote:
> 
> You want: span.style.className = 'cssStyleDefinition';
> 

In keeping with the Dojo way, you could use:
   dojo.html.setClass(span, "cssStyleDefinition");

or if you are augmenting an element with an additional class:
   dojo.html.addClass(span, "cssStyleDefinition");

Ross.
-- 
View this message in context: http://www.nabble.com/assign-style-to-a-span-tf3121927.html#a8658935
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list