Got stuck a bit in this jquery script.I want to get the `link` attribute of the last `td` in the `tr` on check of the check box.
Here is the HTML 

```
      <tr>
          <td><input type="checkbox" name="check" value="happy"></td>
          <td style="width: 310px; line-height: 14px;" class="fileName <?php echo $myClass; ?>" ><div style="width: 310px; overflow: hidden;"><a href="https://abcd.com/<?php echo $info."/".$myinfo['name'];?>" title="<?php echo $myinfo['name'];?>" target="_blank"><?php echo $fileName.'.'.$fileExtension; ?></a></div></td>
           <td style="width: 150px;"><?php echo $fileSize; ?> KB</td>
           <td style="width: 150px;"><?php echo $fileModified; ?></td>
           <td style="width: 150px;">
               <a href="javascript:void(0);" ><span id="" link="https://abcd.com/<?php echo $info."/".$myinfo['name'];?>" title="<?php echo $myinfo['name'];?>" class="shareIcon"></span></a>
               <a href="javascript:void(0);"><span id="deleteIcon" link="<?php echo $myBucket['name'];?>" class="deleteIcon"></span></a>
           </td>
         </tr>

```

I want to get each of the link attribute in the last td when more than one checkbox are.  

What I tried is this  

```
   $("input[name='check']").on('change',function() {
   var checked = $("input[name='check']:checked");
   // console.log(checked);
   $.each(checked,function(){ 
   //console.log(checked.length); 
   if(checked.length>1){
          //  console.log('more than 1');             
          //console.log(checked.parents('td').siblings('.shareIcon'));
          checked.parents('td').siblings('.shareIcon'),function(){
          console.log($(this).attr('link'));

          }      
      } 
   })
 });

```