On 18 Feb, 05:06, expresso <[EMAIL PROTECTED]> wrote:
> I figured maybe I could just append an addClass after the
> element.parent("td").next("td") but not sure if that's correct

that's correct if you want to add tha class to the table cell which is
next to the element you pass (to the function).
if it's the error that you want to apply the class to, instead, the
addClass goes outside, for example:

error.addClass('yourClass').appendTo(element.parent("td").next("td"));

> then where and how to define the class itself.  Does that go inside
> the function or outside.  I assume outside.

the class would be defined in the css file :)

Reply via email to