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&nbsp;apple</a></th>     <td>name</td>     <td class="bcell">         <span>0&nbsp;/&nbsp;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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -