/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// focus on the first text input field on the page
$("input[type='text']:first", document.forms[0]).focus();
Comments
 Subscribe to comments
                    Subscribe to comments
                
                