Select Image Name

Select Image Name

Hi I have a table that show some images. 
I add an Icon to delete the image when the icon is clicked. 
the problem is select the correct namefile of image to use with ajax

  1.   <td>
  2.  <div>
  3.         <img class="deleteimage" src="' . $image . '" />';
  4.       <a href'' class='trash2'>
  5.             <i class='glyphicon glyphicon-trash'></i>
  6.       </a>
  7.          </div>
  8.                 </td>