Select linked drop-down list calculator script in html and javascript for site #39
The calculator contains lists based on the example of countries and cities. The main list includes a list of 3 countries, the dependent lists include 3 cities each.
Example of the work:
http://mobile-island.narod.ru/001/001/0039/index.html
HTML, CSS, and Javascript are used to create linked select drop-down lists, without the need for databases. All select lists are set directly in the HTML code, so this method is well suited for working with small amounts of data.
If necessary, you can add new linked drop-down listsof the 2nd level and new items. Change and set your own value= "" values and item names. The added lists will be automatically taken into account when restarting the calculator and their values will be available when calculating the calculator, without the need to edit the javascript code.
========== File List:
● index.html -calculator form (startup file).
● script.js -calculator scripts.
● style. css-calculator styles.
● pic-folder with pictures (original pictures are blocked).