jQuery, insertBefore, validation, Placement of error message

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-05-17T00:24:39Z Indexed on 2010/05/17 0:30 UTC
Read the original article Hit count: 697

I am using insertBefore under errorplacement to add validation messages, each one below each other as I want the order of the messages to go from top to bottom.

I am using a hidden input at the very bottom of a parent element in order to supply an element for the insertBefore argument.

Is there a way to insert from the bottom without using the dummy hidden element?

If I use absolute positioning, there is a possibility for white space, for example 3 stacked messages, the middle one missing since there is no collapsing with absolute positioning.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css