strangers in the net

i have this in my form:
onchange=javascript:this.form.submit();

and i kept on getting this on my error console:
this.form.submit is not a function

after ogling and googling to the brink of frustration,
a Michael Sharman saved the day:
This only seems to happen when you have a form element named “submit” already on your page,
so the browser treats that “submit” element as an object which is of course NOT a function.
hah! thankful.

No comments: