I have an admin page that has a country selection field that is populated dynamically, and then on choice of country a region field is made available, and the regions for that country only are displayed, to be selected.
In Mozilla when i choose the country, the region drop down doesnt extend itself so that the countries can be seen, but they are there if you know what i mean. Ican scroll up and down, but cant see the countries to see what they are. But in Opera its fine.
I have posted the code below for you to see.
In Mozilla when i choose the country, the region drop down doesnt extend itself so that the countries can be seen, but they are there if you know what i mean. Ican scroll up and down, but cant see the countries to see what they are. But in Opera its fine.
I have posted the code below for you to see.
Code:
function fillregion(countryid)
{
var i=0;
document.form1.selregion.options.length=0;
for(j=0;j<=countryregion.length;j++)
{
if(countryregion[j]==countryid)
{
document.form1.selregion.options[i] = new Option()
document.form1.selregion.options[i].value=j;
document.form1.selregion.options[i].innerText=region[j];
i++;
}
}
if(countryid==0 || i==0 )
{
document.form1.selregion.options[0] = new Option()
document.form1.selregion.options[0].value=0;
document.form1.selregion.options[0].innerText="Anywhere";
}
}