[thelist] Javascript: onChange to affect the Submit button?

Chris Heilmann lists at onlinetools.org
Tue Mar 15 10:33:39 CST 2005


>
>     	function sendthis(f){
> 			var elm=f.elements['searchpedigree'];
> 			switch(elm.options[elm.selectedIndex].value){
> 				case 'search1':
> 					window.location='pageA.html';
> 				break;
> 				case 'search2':
> 					window.location='pageA.html';
>

That second one should be pageB.html of course...


-- 
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list