javascript function - error on multiple forms
Hello,
I have the following javascript function but since there are more than one forms in my page, this function doesn't work propertly. How can I make this functin to work with one of my forms which is named "emailform"? note: this function works perfectly wheen there's only one form in my page.
function highlight_all(num)
{
for(i = 1; i <= num; i++)
{
document.getElementById('tr' + i).className = 'selected';}
}
everytime I call the above function i'm getting getElementById is null error on my page!
Please advice.
