The following works if the row that i want to display has one class. But if it has two classes this don't work.
for example this works
<tr class="testcase-failed-message"> <th> testcase-failed-message </th> <th> testcase-failed-message </th> </tr>
And this don't since it has two classes. How can i have two classes on a tag and still chose wich one i want to use when i want to show them or not??
<tr class="testcase-failed-message failed-skipped"> <th> testcase-failed-message </th> <th> testcase-failed-message </th> </tr>
function show(){ doShow('testcase-failed-message'); } function doShow(textstring) { var allPageTags=document.getElementsByTagName("*"); for (i=0; i<allPageTags.length; i++) { if (allPageTags[i].className==textstring || allPageTags[i].className==textstring2) { allPageTags[i].style.display='none'; } } }
Honestly this is a easy
Honestly this is a easy requirement and simplicty to do if only you would use jQuery as advised in another thread, I won't touch old school JavaScript at all nowadays. jQuery is very quick to pick up as well so won't cause you too much lost time.
First of all we need clamp
First of all we need clamp down on people posting JavaScript problems in a CSS forum. 
Consider this sub-forum's
Consider this sub-forum's description: "Talk about other areas of web development, PHP, DHTML, (X)HTML, JavaScript etc." Bolding added.
cheers,
gary




