
I'm trying to make it so if the user wants they can "hide"a item in a repeat and just show the name... however it doesn't seem to work at all. I've used hide elsewhere for entire "repeat" sections but I can't seem to get it to work within a repeat. Here is what I've tried so far. Very simple note fields. <div class="sheet-tab-content sheet-tab7">
<br />
<strong>Notes</strong>
<fieldset class="repeating_notes">
<table class="enclose" border="5" width="100%">
<tr class="enclose" align="center"><td class="enclose">
<input type="checkbox" name="attr_notes_hidewindow" class="hideoption" /><input type="text" value="New Note" name="attr_notes_name" style="width: 200px" /></td></tr>
<div class="hidebody">
<tr>
<td class="enclose">
<table class="repeat-table-style" width="100%">
<tr bgcolor="orange">
<td class="repeat-tds">
<textarea name="attr_notes_text"></textarea>
</td>
</tr>
</table>
</td>
</tr>
</div>
</table>
</fieldset>
</div>
----------CSS------
input.sheet-hideoption
{
float: left;
}
input.sheet-hideoption:checked ~ div.sheet-hidebody
{
display: none;
}
Any thoughts on where I went wrong?