简体   繁体   中英

How to hide a <td> tag if another has a certain value?

A user would use a page to enter in various details that will be listed in an index page. This value can be one of three when entering the data by using a dropdown selection.

<td>{{this.status}}</td>

If a user selects 'finished' from the dropdown selection, I want this tag to be hidden

<td><a class="comment" href="/pages/comment">Make Comment</a></td>

I have looked at others questions similar to this but none worked, included adding this to the tag as I not using Angular. Sorry this must be such a stupid question but I cant seem to find a proper solution

ng-hide="this.status == 'finished'"

A user would use a page to enter in various details that will be listed in an index page. This value can be one of three when entering the data by using a dropdown selection.

<td>{{this.status}}</td>

If a user selects 'finished' from the dropdown selection, I want this tag to be hidden

<td><a class="comment" href="/pages/comment">Make Comment</a></td>

I have looked at others questions similar to this but none worked, included adding this to the tag as I not using Angular. Sorry this must be such a stupid question but I cant seem to find a proper solution

ng-hide="this.status == 'finished'"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM