Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Check boxs and table row back ground colors


  • From: Info at Abyss.ws (Abyss - Information)
  • Subject: [Javascript] Check boxs and table row back ground colors
  • Date: Tue Apr 25 00:57:55 2006

Hey all,

I have a question for all the scripted gifted. 


I have a table (with table rows....yes amazing...)

anyway in this table i have check boxs(which people will tick for what they desire), what I wish to do is when a particular box is ticked for that entire "tr" to be colored a different color from the rest
like a highlight the row sort of thing.

the page is XHTML 1.1 strict compliant (which every page should be - *ducts from the objects that non compliant people throw*)

how would i achieve this?

I have been fiddling around with this 

<tr>
    <td>
        <input id="chkbxID<%=rs("ID")%>" name="chkbxID" type="checkbox" value="<%=rs("ID")%>" onselect="this.style.background-color='#123456';" />
    </td>
    <td><%=rs("Title")%></td>
</tr> 

but with no-luck- any ideas?


Also just off this topic on a side note
for CSS2 there is a property index (http://www.w3.org/TR/REC-CSS2/propidx.html) is is a fantastic reference page for all the CSS styles

is there any sort of reference like this on the DOM or javascript? if so can you link me please..thanks heaps

Thanks heaps

Abyss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060425/f984e82d/attachment.html