jquery - Disable click link functionality and mask out a table row -
i'm trying implement functionality when link clicked corresponding anchor table row blanked out , link disabled.
is possible using jquery?
an example of 1 of table rows be:-
<tr class="bcell"> <th scope="row"><a title="bla" class="addlink" id="a_205">adrian apple</a></th> <td>name</td> <td class="bcell"> <span>0 / 0</span> </td> <td>jt 76 99 44 d</td> <td>12122121212121</td> </tr>
so if anchor clicked, row blanked out.
this snippet self-explaining:
$(".addlink").click(function(){ [..] //$(this) refers clicked anchor //with .parents("tr:first") retrieve //the desired anchor row var anchorrow = $(this).parents("tr:first"); // can wathever want: have anchor row (it's jquery object) // , anchor link [..] });
Comments
Post a Comment