I've written such simple straightforward code I can't figure why it doens't work. Hopefully you (o great coding genie) can show me what i missed.
This script works in Opera, Mozilla, Netscape...however IE is on strike.
Documentation:
- The script has 3 select lists.
- The first list is hard coded.
- The data for the other two lists is stored in a 2 dimensional array.
- Each entry in the array has 3 entries : make/model/years
- The make/model pair is unique. and the Years is a ":" separated list or valid years per make/model combo.
e.g.
In the event the code below is mangled i included a src file as an attachment.. simply rename to htm and you can tango.
TIA O great Javascript Genie! :->
sincere regards,
~RR
---- code below -- copy paste and load in ur browser.---:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>somedamnshit.com Accounting</title>
<link rel="stylesheet" type="text/css" href="global.css">
<script language="JavaScript"><!--
/** save resources by exiting on first match **/
inForm.years.options[0].text = "- Year -";
inForm.years.options[0].value = "";
inForm.years.options[0].defaultSelected = true;
inForm.years.options[0].selected = true;
window.history.go(0);
return true;
}
}
}
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.