Hi,
I need help to make this work: i need to show an array list with countries in a select component and then show an array list with regions in other select component when the country is selected.
I would like to use this content http://sourceforge.net/projects/count... that has arrays like
var country_arr = new Array("Afghanistan", "Albania", "Algeria", ... );
var s_a = new Array();
s_a[0]="";
s_a[1]="Badakhshan|Badghis|Baghlan|....";
...
and has this code inside
function print_country(country_id){
// given the id of the tag as function argument, it inserts tags
var option_str = document.getElementById(country_id);
option_str.length=0;
option_str.options[0] = new Option('Select Country','');
option_str.selectedIndex = 0;
for (var i=0; i