views:

29

answers:

2

I have a form loaded in a simplemodal overlay, but it focuses on the first input field. Is there anyway to have the form not focus (meaning the field is selected and the user is able to type into it right away without having to click it) on any text input field after a form loads?

+3  A: 
$(function () {
    $('input').blur();
});
Deniz Dogan
+2  A: 

in jquery:

when you add the form do this:

$('input').each(function(){ $(this).blur(); });
Thomas Clayson
awesome! thanks
JayNCoke
No need for the .each() there.
sanchothefat