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