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__
17,CSS;100,General;15,javascript;16,javascript CSS;8,XML C/C++;10,XML converter;12,XML data warehouse;13,XML database;4,XML editor;1,XML general;11,XML HTML;7,XML java;6,XML javascript;5,XML parser;9,XML PHP;2,XML schema;3,XML syntax;14,XPath;