How to use jQuery script inside vue.js app?
var app = new Vue({
el: '#app',
data: {
users: [{'my_date': ''}]
}
});
<div id="app">
<input class="form-control pickadate" v-model="user.my_date" placeholder="My Date">
</div>
I run jQuery script like this but when I add .pickadate class to my input it doesn't react and datepicker doesn't appear:
$('.pickadate').pickadate({
max: Date.now(),
format: "yyyy-mm-dd"
});