XmlGrid Users Forum
2012-04-17 13:31:07
I have a span tag or object, like this:
__code__
<span id="123" class="someClass"> text... </span>
__code__

I want to assign a new class name to it, say,
__code__
<span id="123" class="newClass"> text... </span>
__code__

How can I do it in javascript?

Thanks.
;3397;2012-04-17 13:31:07__s__
I have a span tag or object, like this:
__code__
<span id="123" class="someClass"> text... </span>
__code__

I want to assign a new class name to it, say,
__code__
<span id="123" class="newClass"> text... </span>
__code__

How can I do it in javascript?

Thanks.
__s__~u=xml user~site=NULL__s__How to change a CSS class of DIV or SPAN using JavaScript?__s____m__

Best view with Google Chrome