Try changing the following line <select name="parent" onClick="process(value)"> to <select name="parent" onChange="process(value)"> That might help the behavior of the form/script