Closed (duplicate)
Project:
Clientside Validation
Version:
7.x-1.37
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2013 at 08:43 UTC
Updated:
25 Apr 2013 at 09:25 UTC
I'm trying to create a custom error placement function that displays the error twice, once below the element and once above the form. I have managed to get my custom function to display the error below the element by duplicating the function from clientside_validation however also showing the errors above the form as well is proving difficult. I believe that this is partly because insertBefore() just moves the element, instead of cloning it. I have had some luck by using clone() however when I do this the error isn't removed once validation passes. Any ideas on this?
I've created a gist of the closest I've got so far: Gist
Thanks in advance.
Comments
Comment #1
attiks commentedThis is a duplicate of #1945724-3: Error placement different for blur and submit events