[jQuery] possibility complicated color coding question...

[jQuery] possibility complicated color coding question...

I'm creating a map of sorts for use in a personal site. It's a 40x40 grid
with a few hundred points (see link below). There are usually around 300-500
points on the map and by default each point is color-coded by population.
Right now the color comes from the query which generates the map, but what
I'd like to do is have a default color for each row (maybe from from the SQL
query), but changeable based on a dropdown list which would change the color
coding based on a few options, for example total cities.
The question I have is what would be the best way to indicate the unique id
for a div? Currently each DIV on the map looks like this:
<div id="v_240445" class="lgtpurple" style="left:330px;top:370px;"
onMouseOver="pInfo('60,-213','creole','Romans', 'Mute Butte','4',
'338','0:28:17','Veritas', '94', '349');" onMouseOut="reset();htm();" ><img
src="images/dd.gif" width="3" height="3" class="blink" /></div>
I'm thinking I could change the id of each div to something like this:
id="uniqueid_totalcities_population"
Then, when the dropdown changes, I could sort through every DIV contained
inside #map and change them based on the user's selection.
Am I making any sense?
Here's the live site I've built for reference
http://www.commadelimited.com/travian/
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/