View Full Version : Javascript and CSS

03-20-2009, 01:29 AM

I have a js file with this function

function wrapText(){

var workArea = "";
var openTag = '<span class=red>';



The css file called something.css is saved in the same folder as the js file, however I do not think it the variable "openTag" is refering to the class specified in the css file.
any ideaS?


rnd me
03-20-2009, 01:38 AM
var openTag = '<span class="red">';

also, firebug can let you browse a page's elements so you can quickly ascertain what's being applied to what.