Answer the question
In order to leave comments, you need to log in
How to make behavior definition in vuejs based on class?
Hello.
I continue to master Vue.JS, so the question may be noob and incorrect :)
I have a form that has input fields. On @click (let's say) for each field, I have a specific action. Now the task is to hang one more handler on onfocus. To do this, I will have to manually add @focus="onFocus". But what if there are a lot of input fields? It's inconvenient and inefficient. Using good old jQuery (and vanilla javascript as well) I could hang a handler on all these elements in one line. Doesn't it work with Vue?
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question