Reset CSS in validator

Reset CSS in validator

Hi,

I am using jquery validator to validate the form and setting the backcolor of the element:

  1. errorPlacement: function(error, element)
  2. {
  3. element.css("background-color", "red");
  4. },

I want to know when unhighlight , how can I reset the css style to its original / default css?


Thanks,