changing CSS counter border color dynamically

Hi I have a JS code that changes property to element after map RSS XML data.
The element related to counter changes is instead related to the whole list item, so if I change background color it changes on list border.

which is the name of element to change css properties of counter dynamically?

(this is not working but just to give an idea)

var number_seats=value;
if (number_seats=="0"){
element.Counter.css("border-color","red");

}
else {
element.Counter.css ("border-color","green");

}
return value;
1 person has
this question
+1
This topic is no longer open for comments or replies.