-1
I am developing an application in Vuejs/Quasar and need to discover the id of a certain element using the getElementById
, how do I do it in Vuejs??
-1
I am developing an application in Vuejs/Quasar and need to discover the id of a certain element using the getElementById
, how do I do it in Vuejs??
1
In Vue.js if you use v-for you can use the index property.
Browser other questions tagged javascript dom vue.js
You are not signed in. Login or sign up in order to post.
Vuejs is Javascript. You can use it anyway
.getElementById
. But it would be interesting to know more about your code to answer better.– Sergio
I’ve already found a solution using
(item, index)
in thev-for
and passing it as a parameter in the capture method.– LeonardoEbert