PDA

View Full Version : input brain freeze


nathan_lamothe
04-21-2006, 03:53 AM
I've been sitting here too long today apparently.

Whats the input type="text" equivilent to "checked" for radio and checkboxes?

ie: How do I have the cursor sitting in a particular input field ready and waiting on page load?

Thanks.

Kravvitz
04-21-2006, 04:21 AM
You would use JavaScript to give the field focus via the onload event.

Use setTimeout with element.focus() to set focus (http://www.mozilla.org/access/keyboard/tabindex)

nathan_lamothe
04-21-2006, 04:27 AM
focus.

Thank you.

sigh.