View Single Post
Old 12-14-2012, 08:42 PM   PM User | #13
Prime8
New Coder

 
Join Date: Oct 2010
Posts: 51
Thanks: 2
Thanked 0 Times in 0 Posts
Prime8 is an unknown quantity at this point
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++;
			}
		}
	}

Last edited by Prime8; 12-14-2012 at 08:48 PM..
Prime8 is offline   Reply With Quote