Hi,
1.
$(function() {
$('[autofocus]:visible:not(:focus)').first().focus();
});
2.
$(function() {
$('[autofocus]:not(:focus)').eq(0).focus();
});
---------------------------------
this is the coding am used for set the focus on the first field.
but focus is not happenning..