> I now want to add colour to the cells depending on the values of a
> score [...]
> I am aware that jQuery can select <td> and .addclass but can't think
> how to link the score to the jQuery

You could use the :contains() selector*:
     jQuery("td:contains(4)").addClass("highlight");

Given that you're generating wiki markup rather than DOM elements 
directly, it's probably easiest if you add that code after constructing 
the table.


-- F.


* http://docs.jquery.com/Selectors

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to