When the drupal form fails validation, it redraws with elements that fail validation, surrounded by a red border. Drupal does this by adding the error class to the input elements and pointing to the red 2px border on the input.error elements in system.css .
Without changing this stylesheet, how can I remove the red border for a specific form only using the default behavior on the rest of the site?
I believe that a solution may require the use of a custom theme_form_element , but I cannot figure out how to configure only one form.
Note that I would like to do this without resorting to the jQuery trick (which works):
$("#edit-name").removeClass('error');
source share