I want to get the html caller in vue.js to change it through jQuery. At the moment, I give each element a class name + index and call it through jQuery afterwards, but it looks like a crazy hack.
What I want to do:
new Vue({ el: "#app", data: { testFunction : function(element) { $(element).doSomethingWithIt();
This is the caller:
<div v-on:click="testFunction(???)">Test</div>
What can I pass to a function to get a div element, or is there another way to achieve this?
landunder
source share