- Jul 6, 2002
- 46
- 0
- 0
I want to create a form in HTML to submit data.
For example i have two text boxs and two buttons
<input type="text" name="textfield">
<input type="text" name="textfield2">
<input type="submit" name="Submit" value="Submit">
<input type="submit" name="Submit2" value="Submit">
when the browser load the page, how to set the cursor on the first text box?
after typing thing in the two text boxs, how to set the enter key to be the first button so that when press enter key, the result is as same as clicking the first button?
For example i have two text boxs and two buttons
<input type="text" name="textfield">
<input type="text" name="textfield2">
<input type="submit" name="Submit" value="Submit">
<input type="submit" name="Submit2" value="Submit">
when the browser load the page, how to set the cursor on the first text box?
after typing thing in the two text boxs, how to set the enter key to be the first button so that when press enter key, the result is as same as clicking the first button?