rubyriot
10-09-2011, 01:07 AM
I need to make a table fadeout with JavaScript when I click a button. The table is simple.
<table id="users_table" style="border:1px solid #000;border-collapse: collapse;" border='1'>
<tr class="dataRow">
<td>11</td>
<td>12</td>
<td>13</td>
</tr>
<tr class="dataRow">
<td>21</td>
<td>22</td>
<td>23</td>
</tr>
<tr id="row3" class="dataRow">
<td>31</td>
<td>32</td>
<td>33</td>
</tr>
<tr class="dataRow">
<td>41</td>
<td>42</td>
<td>43</td>
</tr>
</table>
There is a button that calls a function called fadeout(). I cannot find a way to make the table fade out with just that one function. Is that even possible? If not, what other functions are necessary to make this happen?
<table id="users_table" style="border:1px solid #000;border-collapse: collapse;" border='1'>
<tr class="dataRow">
<td>11</td>
<td>12</td>
<td>13</td>
</tr>
<tr class="dataRow">
<td>21</td>
<td>22</td>
<td>23</td>
</tr>
<tr id="row3" class="dataRow">
<td>31</td>
<td>32</td>
<td>33</td>
</tr>
<tr class="dataRow">
<td>41</td>
<td>42</td>
<td>43</td>
</tr>
</table>
There is a button that calls a function called fadeout(). I cannot find a way to make the table fade out with just that one function. Is that even possible? If not, what other functions are necessary to make this happen?