I have the following situation within a report that has the following <td>
element. Please note that this can appear multiples times as it is a report.如何删除<a href> Link Tag for a Specific Value using Jquery
My question is, when the value is ‘N’, using jQuery, I would like to remove the whole <a href> tag
and just display the value of ‘N’ alone, without the underline below it, otherwise if the value is ‘Y’ then leave it as it is.
For example:
<td align="center" headers="MPA_CHANGED"><a href="http://www.mysite.com" class="my-mpa">Y</a></td>
<td align="center" headers="MPA_CHANGED">N</td>
在哪里值N来自哪里? – AnandVeeramani
从数据库查询。只需要检查是否'N',那么就不需要href标签。谢谢。 – tonyf