With the validation i have managed to make it add a class called
'Valid' to the label that the validation adds. However i want to make
it add a class (same name) to the textbox too. I've managed this by
doing:

    success: function(element) {
        $(element).addClass("Valid").parent("span").children("input,
textarea").addClass("Valid")
    },

Which works fine. However if you add text to the textbox - so it's
valid - then remove the text - so it's not valid - the Valid class is
removed from the label but not from the textbox.

Is there an easier way to do what i'm doing? Or is there a suitable
place to add the code to remove the class?

You can see an example of this in action here:
http://test.sunshine-design.co.uk/Articles.aspx

Reply via email to