Hello,
On index.html page I have a table with id="property_fi elds".
<table id="property_fi elds" name="property_ fields" border="0">
It contains set of rows with the following IDs:
var propertyRows = new Array(
"region_row ", "town_row", "district_r ow", "address_ro w", "house_row" , "floor_no_r ow", "rooms_row" , "floors_row ", "area_row", "year_built_row ",
"ownership_row" , "standard_r ow", "garrage_ro w", "parking_ro w", "kitchen_ro w", "balcony_ro w", "gas_row", "media_row" , "equipment_row" , "guard_row" ,
"building_type_ row", "picture1_r ow", "picture2_r ow", "picture3_r ow", "property_remar ks_row"
);
I want to remove row if it is not required - it depends on the selection of
estate_type control:
for (var r = 0; r < propertyRows.le ngth; r++)
{
if (visibility[document.announ cement.estate_t ype.selectedInd ex][r] == 0)
{
var theRow = document.getEle mentById('prope rty_fields').ro ws[r + 1];
document.getEle mentById('prope rty_fields').re moveChild(theRo w); // HERE
PROBLEM: nothing happends
}
}
(there's 2-dimensional table called visibility).
The problem is that removeChilds() does nothing, there is no visual effect.
I use FireFox in Linux.
Please help. Thanks in advance.
/RAM/
On index.html page I have a table with id="property_fi elds".
<table id="property_fi elds" name="property_ fields" border="0">
It contains set of rows with the following IDs:
var propertyRows = new Array(
"region_row ", "town_row", "district_r ow", "address_ro w", "house_row" , "floor_no_r ow", "rooms_row" , "floors_row ", "area_row", "year_built_row ",
"ownership_row" , "standard_r ow", "garrage_ro w", "parking_ro w", "kitchen_ro w", "balcony_ro w", "gas_row", "media_row" , "equipment_row" , "guard_row" ,
"building_type_ row", "picture1_r ow", "picture2_r ow", "picture3_r ow", "property_remar ks_row"
);
I want to remove row if it is not required - it depends on the selection of
estate_type control:
for (var r = 0; r < propertyRows.le ngth; r++)
{
if (visibility[document.announ cement.estate_t ype.selectedInd ex][r] == 0)
{
var theRow = document.getEle mentById('prope rty_fields').ro ws[r + 1];
document.getEle mentById('prope rty_fields').re moveChild(theRo w); // HERE
PROBLEM: nothing happends
}
}
(there's 2-dimensional table called visibility).
The problem is that removeChilds() does nothing, there is no visual effect.
I use FireFox in Linux.
Please help. Thanks in advance.
/RAM/
Comment