replace the value of anchor tags in jquery

Viewed 42

I have the following html I need to go through each anchor tag and check if the anchor tag value is APL

$('a').text()="APL"

If value is equal to APL i need to remove the hyperlink on the Status column.

Is there i can loop through all the anchor tags and remove the hyperlink tag

<table>
  <tbody>
    <tr>

      <th scope="col">Id</th>
      <th scope="col">Class</th>
      <th scope="col">Status</th>


    </tr>
    <tr>
      <td>185</td>
      <td>1</td>
      <td>
        <DETAIL</td>
          <td><a href="Detail.aspx?id=185" target="_blank">APL</a>
          </td>
    </tr>
    <tr>
      <td>186</td>
      <td>2</td>
      <td>
        <DETAIL</td>
          <td><a href="Detail.aspx?id=185" target="_blank">DDL</a>
          </td>
    </tr>
    
  </tbody>
</table>

2 Answers
Related