Search found 2 matches

by kanukawa
Mon Apr 22, 2019 12:22 pm
Forum: Components
Topic: select component is undefined using jquery
Replies: 3
Views: 726

Re: select component is undefined using jquery

I'm working on VueJs

Template code

Code: Select all

<select id="select" data-role="select">
</select>
Javascript code

Code: Select all

mounted() {
    const select = $('#select').data('select')
    console.log(select) // undefined
}
by kanukawa
Mon Apr 22, 2019 11:36 am
Forum: Components
Topic: select component is undefined using jquery
Replies: 3
Views: 726

select component is undefined using jquery

$('#select').data('select') is undefined

$('#select') is found but after data('select') is undefined