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]">
- [Vuejs]-Submitting form via Vue JS to Laravel getting error 419/500 deployed on Google Cloud
- [Vuejs]-Why can't a global component be separated from a Vue instance into a different JS file?
Source:stackexchange.com