Hahaha! You dont have to apologise for that, my mother should apologise to me hahahaha
Ok thank you for your very good and easy explanations on this. This was actually part of another qustion i posted here, these rules doesnt apply in this example right? $.validator.addMethod('userCheck', function (value) { $.ajax({ type: "POST", url: "_scripts/send_message.php", data: "action=checkuser& username=" + value, success: function(msg) { if (msg) { return false; } else { return true; } } }); },""); Even though it¨s nested functions i cant return anything outside this without using a global variable? Like this: var result; $.validator.addMethod('userCheck', function (value) { $.ajax({ type: "POST", url: "_scripts/send_message.php", data: "action=checkuser& username=" + value, success: function(msg) { if (msg) { result = false; } else { result = true; } } }); return result; },""); regards George