Accessing a class with JavaScript.

admin

Administrator
Staff member
<span class="a" onClick="doStuff(this.style);">Asdf.</span>

The 'doStuff()' function doesn't work, because unless I say what the style is in the span tag, it claims not to know anything about it. So I'm thinking there has to be some way to get to the class of the span with JavaScript.

Thanks, Alan.
 
Back
Top