PDA

View Full Version : Setting FOCUS on a textifeld that's NOT in a form



monaya
07-31-2010, 07:39 PM
I have a textfield that's not in a <form> tag that uses Ajax onkeyup.

I would like to set the focus on the textfield when the ajax runs.

Everything I've seen references a form.

mburt
08-01-2010, 03:04 AM
<textarea id="test"...

document.getElementById("test").focus();