Sorry For being unclear, what I mean is this.
Currently on page load I fetch the links with a certain id, I check my database, then json back the result into the link. So Essentially:
<a href="#" class="switcher" id="Site_Gallery-<?php echo $item->id; ?>">...loading....</a>
Becomes either:
<a id="Site_Gallery-563" class="switcher" href="#">Enabled</a>
or
<a id="Site_Gallery-563" class="switcher" href="#">Disabled</a>
What I would like todo is CSS, or maybe on the ajax call (not ideal) is look at that value and then set the link colour to either green or red.
I figured in CSS there might be away to-do
.switcher='Enabled' {
color: green;
} .switch='Disabled' {
color: red;
}
Are there any tricks to-do this? p.s thanks for your answers so far