Error Output to different Place

Error Output to different Place

Hi,
I managed to get jQuery to work well.

I have a CSS that puts the errormessage and the style with an image.

I really would like to have the image to the rigth of the field, but the errortext should be above or below the input label.

The form looks like:

<form method="post" class="cmxform" id="formName" action="form.php">
    <table border=1>

                <tr><td colspan=3 class="status">Error should be here</td></tr>
                <tr>
                  <td class="label"><label id="lusername" for="username">Username</label></td>
                  <td class="field"><input id="username" name="username" type="text" value="" maxlength="50" /></td>
                  <td class="status">or here</td>
                </tr>



The error goes to

errorPlacement: function(error, element) {
            if ( element.is(":radio") )
                error.appendTo( element.parent().next().next() );
            else if ( element.is(":checkbox") )
                error.appendTo ( element.next() );
            else {
                //error.appendTo( element.prevAll('td.status').html('&nbsp;') );
               
                //error.appendTo( element.parent().next() );
                error.appendTo( element.parent().next() );
                }


How can I change the 'path' to make the error appear in the element status before the input?
element.parent("tr.td") or something like that? Is there a smart way the get the path?
Thanks,
Peppi