Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change td border

Status
Not open for further replies.

spiveygb

Programmer
Jun 24, 2003
27
0
0
US
I want to change the td border color on an onclick event. When the user clicks on content in one of the td's other functions are run. BI want to give an indication as to the currently selected td. Right now my td borders are hidden. I've tried using border-color but I'm obviously doing something wrong. Can someone please get me started in the right direction? Thanks.
 
<td onclick="this.style.border = '1px solid red';">
foo
</td>

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top