[jQuery] input blur validation

[jQuery] input blur validation


I have the following code:
function validate_number ()
{
var value = event.currentTarget.value;
if ((value < 0) || (value > 10))
alert ("value out of range");
}
    $("input").change(validate_number);
    $("input").blur(validate_number);
It works as expected, but if I hit the tab key (triggering the blur
event) the focus moves to the next field. I've tried returning false
as well as calling $(event.currentTarget).focus(); but neither worked.
Is there a way to keep the focus from moving, or move it back inside
my validation function?
--
Chris