[thelist] onchange.. my aunt!

kasimir-k kasimir.k.lists at gmail.com
Tue Jan 30 05:43:39 CST 2007

Tris scribeva in 30/01/2007 10:07:
> <form id="bookingForm" name="bookingForm" method="post"
> action="<?=$_SERVER['REQUEST_URI']?>">
> and further down..
> <select name="departure" id="departure"
> onChange="document.forms['bookingForm'].submit(); return true;">
> i've tried using this:
> this.form.submit();
> but it just gives me errors :-(

What kind of errors?

Would you happen to have an input with name="submit"? (e.g. a submit 
button.) That would prevent the form's submit method from working.

To debug this a bit easier, you could put the submitting in a function 
like this
function submitForm(el){
	// alert all sorts of interesting things
	// or use firebug's console.log()

<select ... onchange="submitForm(this)"


More information about the thelist mailing list