I have a form in my page that is filled out in 3 steps. For each step, fields are contained in a div grouping together elements of that step. When the user moves to the next step I hide that div and show the next one. After the last step, the users confirms the data and submits it. At this point, validation kicks in, validating ALL fields in the form (of every step).
I am using floating qTips to show error comments on validation failing fields. My problem is that the tip shows up with a messed up position when the failing field is not visible, and when it becomes visible, it jumps all over the screen to its correct position.
Question: How can I get the qTip to be visible only when the field is visible and to hide when its not?
The generated qTip has an inner element htmlFor="name-of-field"
so I guess I can use that to relate each qTip to its generating field. But how do I get it to hide/show with the field when each step div is hidden/shown?