Here's my function edited to match the example:
Code:
function theAfunction()
{
var afil = 0;
var thS0 = document.getElementById('A');
$("tr.rowhid").attr("class","rowfil");
$("tr.rowfil").show();
for (var i=0;i=document.getElementById('tda_' + afil);i++)
{
var a2 = document.getElementById('tda_' + afil);
if (thS0.options[thS0.selectedIndex].text !== a2.innerHTML)
{
//alert("200");
$("tr#rowfil_" + afil + "").attr("class","rowhid");
$("tr.rowhid").hide();
//i++;
afil++;
if (thS0.options[thS0.selectedIndex].text == '')
{
$("tr.rowhid").attr("class","rowfil");
$("tr.rowfil").show();
}
}
else
{
//i++;
afil++;
}
}
}