showing results for - "alpine js get target"
Michaela
13 Jul 2018
1<div x-data="MyComponent()">
2  <a
3    @click.prevent="download($event)"
4    data-video="video_id"
5    data-url="{{ base_url('tools/download_thumbnail_A') }}"
6    data-quality="maxres"
7    class="button">
8    A
9  </a>
10  
11  <a
12    @click.prevent="download($event)"
13    data-video="video_id"
14    data-url="{{ base_url('tools/download_thumbnail_B') }}"
15    data-quality="maxres"
16    class="button">
17    B
18  </a>
19  
20  <a
21    @click.prevent="download($event)"
22    data-video="video_id"
23    data-url="{{ base_url('tools/download_thumbnail_C') }}"
24    data-quality="maxres"
25    class="button">
26    C
27  </a>
28  
29  <p x-text="value"></p>
30</div>
31
32<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"></script>