I have used obout combobox and page method for filling these combobox.
I have two combobox second one is dependent on first one.
It works fine but when i click submit button the second combobox values vanish.
Or if i refresh the page the second combobox become empty.
here is the code
function getSubCategory()
{
var catid=document.getElementById("ob_drpCategoryTopContainer")
var key=drpCategory.getValue();
drpSubCate.clearOptions();
PageMethods.BindInstituteSubcategory(key,OnComplete,OnError);
}
function OnComplete(result)
{
var cateid = document.getElementById("ob_drpSubCateTopContainer");
var items = result.split('|');
var idValue;
var textValue;
var optionItem;
for(i = 0; i < items.length;i++)
{
textValue = items[i];
...
Go to the complete details ...