I expect this is simple, but I've been trying different approaches for hours.
I have a simple mapping of a service response to a field, and I want to add a class to the field if the value returned is 0
In the field's javascript I've tried things like:
if (value 0){
$(this).addClass("newclass")
}
and I've tried element.name and all sorts of other guesses, but whatever I do I can't get a handle on the element to pass to jquery to add the class.
Please put me out of my misery - how do I pass an element to jquery?
Thanks
John