I don't think there is a built in way, but you can hack together something by attaching focus
events to all the form elements and setting some globally accessible variable about who received focus.
Something like this (you may want to fine-tune the time values):
var focusedElem = null;
var focusedTime = 0;
$("input", "#myForm").focus(function() {
focusedElem = this;
focusedTime = new Date();
})
.blur(function() {
setTimeout(function() { //set a small timeout to wait for the other control to receive focus and set itself as focusedElem
if (focusedElem && (new Date() - focusedTime) < 15) {
//do Something with focusedElem;
}
}, 10);
});