kenny119119
New Member
I'm following a tutorial, this version of the form works, where I use onchange. However, the second version below where I try to use onsubmit doesn't work. Can anyone help please? \[code\]<form><select name="users" onchange="showUser(users.value)"> <option value="">Select a person:</option> <option value="http://stackoverflow.com/questions/13838411/1">Peter Griffin</option> <option value="http://stackoverflow.com/questions/13838411/2">Lois Griffin</option> <option value="http://stackoverflow.com/questions/13838411/3">Glenn Quagmire</option> <option value="http://stackoverflow.com/questions/13838411/4">Joseph Swanson</option></select>\[/code\]This is the one that doesn't work and I'm not sure why?\[code\]<form onsubmit="showUser(users.value)"><select name="users"> <option value="">Select a person:</option> <option value="http://stackoverflow.com/questions/13838411/1">Peter Griffin</option> <option value="http://stackoverflow.com/questions/13838411/2">Lois Griffin</option> <option value="http://stackoverflow.com/questions/13838411/3">Glenn Quagmire</option> <option value="http://stackoverflow.com/questions/13838411/4">Joseph Swanson</option></select><input type="submit" value="http://stackoverflow.com/questions/13838411/Submit" >\[/code\]