Hi,
I'm sure there's a shorthand way to do this. I'm trying to get the checked
state of a checkbox, the only one, within a particular DIV. I would prefer not
to use the ID of the checkbox but some more generic way of referring to the
only checkbox within the DIV, id=dToDo1. I am fine to use the ID of the DIV in
the shorthand expression. Here's how the HTML looks:
<div class="sidebarToDo" width="100%" id="dToDo1">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><input id="cbTd1" onClick="var textDecor = (this.checked ?
'line-through' : 'none'); $('#textId1').css('text-decoration', textDecor);"
type="checkbox" id="tdcb1" ></td>
<td id="textId1" class="sidebarText" style="text-decoration: none">Wake
Up</td>
<td align="right"><a class="editTDItem" href='#'><img
src="images/edit.gif" alt="Edit" border="0"></a></td>
<td align="right"><a class="deleteTDItem"
href="javascript:toggleDiv('dToDo1');"><img src="images/deleteLink.gif"
alt="Delete" border="0"></a></td>
</tr>
</table>
</div>
Thanks for your help, - Dave
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/