How can I make this line of HTML / Javascript validate?

djh00700

New member
I'm using a jquery lightbox. The page won't validate in HTML 4 (strict) because of the javascript '$' symbol. It's the only error I have. Any ideas?

<a href="upload/whatever.jpg>" rel="lightbox[group]" title="Whatever" $('#gallery').lightBox();">

"character "$" not allowed in attribute specification list"

I've tried //<![CDATA[ $('#gallery').lightBox();//]]> ">

but this also throws an error... :-(
 
Back
Top