Is there something I can do like this (perhap via a plugin)
if ( ! $(\'form#contact input]\').hasFocus()) { $(\'form#contact input:first]\').focus(); }
No, there isn't.
However, you can simulate it like this:
$(':input') .data('focused', false) .focus(function() { $.data(this, 'focused', true); }) .blur(function() { $.data(this, 'focused', false); });