Click to See Complete Forum and Search --> : problem with selecting table row..help pls..


BabySpidy
September 19th, 2005, 11:49 PM
Hello there guys.

I have attached here my html file along with javascript.
As you can check from my html file, when I select a table row, the selected row property(background color, border) changed. However, when I select another table row, the previous selected row didn't back to the original property of it. With my given javascript, I'm having a hard time to figure it out how it will back to the original property.
Can please someone out there try to check my script and help me with this matter.

Thanks.

Darth Hacker
September 20th, 2005, 08:31 PM
Change this line of code:

this.className = this.className + classType;

to this:

this.className = classType;

BabySpidy
September 21st, 2005, 07:21 AM
Thanks a lot Darth Hacker.

It works fine now..:)

Really appreciate it.