Question: I'm using the jQuery validation plugin for a form contained in a colorbox. I want to close the colorbox and open a second colorbox (saying thank you) if the validation is successful, and then send the user to their original destination.

The script captures the destination of the user and puts it in a variable, then opens a colorbox. Users can exist the colorbox in four different ways, clicking off the bock, clicking the x in the upper right corner, clicking the close button, or a successful submit. Then they continue on their way.

What I need is something like an if submit successful, then open thank you colorbox. What I've tried so far just breaks everything.

```
$('#lookUpSubmit').unbind('click').click(function(){
    $form.submit();
});

$("#lookUpCancel").unbind('click').click(function(){
    $.colorbox.close();
});

$(document).bind('cbox_closed', function() {
    window.location = destination_url;
});

$form.validate({
    submitHandler: function(form) {
        form.submit();
    },
//some stuff
});

```

Answer: 
The `MethodInfo` doesn't *know* the target of the method call - the `MethodInfo` effectively belongs to the *type*, not one specific object.

You need to have an instance of the target type on which to call the method. You can find the type easily enough using `MethodInfo.DeclaringType` (inherited from [`MemberInfo.DeclaringType`](http://msdn.microsoft.com/en-us/library/system.reflection.memberinfo.declaringtype.aspx)), but you may not have an instance at that point...

As noted by Reed, [`MemberInfo.ReflectedType`](http://msdn.microsoft.com/en-us/library/system.reflection.memberinfo.reflectedtype.aspx) may be more appropriate than `DeclaringType`, depending on how you were planning to use it.

You haven't explained anything about what you're doing, but it may be more appropriate to take an `Action` delegate instead of a `MethodInfo`, if the rest of your design could be changed appropriately.
You can determine the type which defines the method by accessing the DeclaringType property of the MethodInfo object.