[Vuejs]-Concatenating variable with querySelector VueJS

1👍

You should look at using ‘refs’ to select a DOM directly instead of native javascript and CSS selectors.

For example this.$refs[this.id]

https://v2.vuejs.org/v2/api/#ref

Leave a comment