You are here: irt.org | FAQ | JavaScript | Form | Q1511 [ previous next ]
Try:
<form> <input type="text" name="first"> <input type="button" onClick="this.form.elements[0].name='second'; this.form.submit()"> </form>
©2018 Martin Webb