[jQuery] possibility complicated color coding question...

[jQuery] possibility complicated color coding question...

I know that you can have two classes on an item, but is it possible to have
3? If you have three styles on an item then that might work.
Using jQuery, would that be the correct way to reference an item that had
more than one class?
Assuming an item like this:
<div class="p25 v4 g0">this is my div</div>
Could you reference just one style at a time like so:
$('.p25').addClass('MyNewStyleClass');
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Ian Struble
Sent: Thursday, August 03, 2006 5:39 PM
To: jQuery Discussion.
Subject: Re: [jQuery] possibility complicated color coding question...
Have you thought about using a dummy class to indicate the div's
possible categories? Something like:
<div class="isA_cityCount_100 isA_fastGrowth_2000">
And then key off the "isA_..." classes to add the classes that
actually have style information?
$('.isA_cityCount_100').addClass('MyNewStyleClass');
Ian



























    • Topic Participants

    • andy