D
D
Dan Ryehood2019-05-07 21:47:02
Vue.js
Dan Ryehood, 2019-05-07 21:47:02

How to connect an event by tag class in Vue?

How to do something like this in Vue?
$('.modify').on('keyup', runThisFunction);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-05-07
@wbird

No need. This cannot be done. If you decide to do this, then most likely you do not fully understand Vue. If you want to refer to an element that is outside the application container (which is also quite rare), then you do it with the usual JS methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question