Overriding <div class="fieldWithErrors">

Dan Harper wrote:

Ben Munat wrote:

Let me guess... inside a td, right?


Actually no, it was inside a <p>. I was using <p> to group form
sections together.

Well, you don't have to use error_messages_for (which generated the
<div>) to print your errors, and you don't have to put your <div>
somewhere where it will lead to invalid HTML. <span> is probably
semantically inappropriate.