I have 50 hidden rows in a table <tr style=”display: none;” id=”grounds2″>
My goal, is to show all Rows where contained textarea.value !==’Note:’
via small js script which I am certain is possible, but has me completely stumpted.
[CODE]<script type=”text/javascript”>
function showHide(inID) {
if (document.getElementById(inID).style.display == ‘none’) {
document.getElementById(inID).style.display = ‘block’;
} else {
document.getElementById(inID).style.display = ‘none’;
}
}
</script>
<table width=”600″>
<tr id=”grounds1″>
<td><textarea class=”noscroll” name=”GN_1″ cols=”100″ rows=”5″ tabindex=”1″>Note:</textarea></td>
<td align=”center” width=”80″ >
<input type=”checkbox” class=”checkbox” value=”1″ name=”C1″
onclick=”if((document.Q_note.GN_1.value !==’Note:’)&&(document.Q_note.C1.checked))
{showHide(‘grounds2′); document.Q_note.GN_2.select();}”>
</td>
</tr>
<tr style=”display: none;” id=”grounds2″>
<td><textarea class=”noscroll” name=”GN_2″ cols=”100″ rows=”5″ tabindex=”2″>Note:</textarea></td>
<td align=”center” width=”80″ ><input type=”checkbox” class=”checkbox” value=”1″ name=”C2″ onclick=”if((document.Q_note.GN_2.value !==’Note:’)&&(document.Q_note.C2.checked))
{showHide(‘grounds3′);} document.Q_note.GN_3.select();” ></td>
</tr>
<tr style=”display: none;” id=”grounds3″>
<td><textarea class=”noscroll” name=”GN_3″ cols=”100″ rows=”5″ tabindex=”3″>Note:</textarea></td>
<td align=”center” width=”80″ ><input type=”checkbox” class=”checkbox” value=”1″ name=”C3″ onclick=”if((document.Q_note.GN_3.value !==’Note:’)&&(document.Q_note.C3.checked))
{showHide(‘grounds4′);} document.Q_note.GN_4.select();”></td>
</tr>
<tr style=”display: none;” id=”grounds4″>
<td><textarea class=”noscroll” name=”GN_4″ cols=”100″ rows=”5″ tabindex=”4″>Note:</textarea></td>
<td align=”center” width=”80″ ><input type=”checkbox” class=”checkbox” value=”1″ name=”C4″ onclick=”if((document.Q_note.GN_4.value !==’Note:’)&&(document.Q_note.C4.checked))
{showHide(‘grounds5′);} document.Q_note.GN_5.select();” ></td>
</tr>
<tr style=”display: none;” id=”grounds5″>
<td><textarea class=”noscroll” name=”GN_5″ cols=”100″ rows=”5″ tabindex=”5″>Note:</textarea></td>
<td align=”center” width=”80″ ><input type=”checkbox” class=”checkbox” value=”1″ name=”C5″ onclick=”if((document.Q_note.GN_5.value !==’Note:’)&&(document.Q_note.C5.checked))
{showHide(‘grounds6’);} document.Q_note.GN_6.select();” ></td>
</tr>
<tr style=”display: none;” id=”grounds6″>
<td><textarea class=”noscroll” name=”GN_6″ cols=”100″ rows=”5″ tabindex=”6″>Note:</textarea></td>
<td align=”center” width=”80″ > </td>
</tr>