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?
views:
29answers:
2
+2
A:
in jquery:
when you add the form do this:
$('input').each(function(){ $(this).blur(); });
Thomas Clayson
2010-09-22 15:51:12
awesome! thanks
JayNCoke
2010-09-22 16:03:29
No need for the .each() there.
sanchothefat
2010-09-23 10:56:07