Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Displaying the values in selectboxes
jana
Hi everybody,
I am working with external components. Here i am getting values in the select box. Based on the selection of the value of first select box values ion select box has to be displayed. Can any one help me to do this.
thanks in advance.
Find more posts tagged with
Comments
jana
I got it solution for this is :
var CountryArray=new Array();
var CapitalArray=new Array();
CountryArray[
] = '
';
CapitalArray[
] = '
';
function SelectCountry(selectobj)
{
alert(selectobj.value);
var countryValue=selectobj.value;
var hy=document.getElementById("sel2");
for(var i=0;i<CapitalArray.length;i++)
{
if(CountryArray
== countryValue){
alert("inside if");
hy.options[0]=new Option(CapitalArray
, CapitalArray
, true, true);
}//if
}//for
}