jQuery Validator - Validator fails silently after errorPlacement is added
I've checked this in firebug on Chrome and FF.  No errors are reported and nothing is logged to the console.

If I remove the errorPlacement Validator starts working again.  What am I missing?

    <script>
    $(document).ready(function(){
    	$("#surveyForm").validate({
    		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.parent().next() ); 
            }					  
    	});
    });
    </script>
jQuery Validator - Validator fails silently after errorPlacement is added
===

I've checked this in firebug on Chrome and FF.  No errors are reported and nothing is logged to the console.

If I remove the errorPlacement Validator starts working again.  What am I missing?

    <script>
    $(document).ready(function(){
    	$("#surveyForm").validate({
    		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.parent().next() ); 
            }					  
    	});
    });
    </script>