Hello,

I'm having difficulty traversing the DOM with the validate plugin.
I'm sure Jorn can figure this out quikcly :)

I'm trying to target the error message to be placed in the <span
class="errorMsg"> tag.  This tag can be any # of elements past the
input or checkbox or whatever is being validated.

Here's a sample:
<div id="uploadImage" class="field">
     <input type="file" name="file" id="file"><span class="errorMsg"></
span>
<br><br>
     <input type="checkbox" id="photoConfirm" name="photoConfirm"
value="approve" /> I confirm that I have permission to include this
photograph
<br>
<span class="errorMsg"></span>
<div class="clearBreak"></div>
</div>

The <span class="errorMsg"> is right after the <input> tag and 2
elements past the checkbox.

How can I traverse the DOM to get to the span tag x # of tags past the
validated element?

Thanks!

Reply via email to