[Vuejs]-Access specific <td> with vue.js

0👍

You are thinking jQuery way. This is VueJS. VueJS working in different way than jQuery where you can refer to some element using $('#id').

Your question is quite not clear, but I will try to explain.
The best what you can do is in my opinion use method with your parameters(item,key) which will throw true/false depend on those values and use this method to bind the class.

So in thic case your code would look like: <td v-bind:class="[yourMethod(key,item)? trueClass : falseClass]">

Leave a comment