positioning span?
take开发者_Go百科 a look at this validation demo:
http://jquery.bassistance.de/validate/demo/
the error messages are placed on the right side to the fields.
i have wrapped span on my messages and want to place them to the left side of the input fields. how do i do that with css?
if you want, you can hack the code on jquery.validate.js
and look for this line:
label.insertAfter(element);
and change it to:
label.insertBefore(element);
You just want to move them with CSS (that is, whithout changing where those elements occur in the HTML)? One way would be: position: relative; left: -120px; top:-20px
(or whatever values you find put them where you want.
精彩评论