I got my database table named as section_master with attributes id, section, sectiontype.
I have 3 radio buttons in sectiontype as
office
chamber
residence
I have created a select list for section.

When i wish to choose the radio button office.
i want to show only those sections in the select list who have their section type as office.

simultaneously same for chamber, residence.

Please help me out.

I got my database table named as section_master with attributes id, section, sectiontype.
I have 3 radio buttons in sectiontype as
office
chamber
residence
I have created a select list for section.

When i wish to choose the radio button office.
i want to show only those sections in the select list who have their section type as office.

simultaneously same for chamber, residence.

Please help me out.

When you click on office from select list you should send the section type in the java script function which will decide which section to show.
function test(secType)
{
if(secType==office)
{
//show office section
}
else if(secType==chamber){
same as above
}
return false;
}