Aug 30, 2022
0
Level 3
Livewire to JS Array - Databinding
I'm using flatpickr date range picker storing the start/end dates within an array like so:
value: ['2022/01/01', '2022/01/10'],
The value(s) are stored within 1 input box and split like so in the preview:
2022/01/01 to 2022/01/10
with a simple string split function on " to ".
My question is, how would I databind the start/end elements within the JS array?
Thanks!
Please or to participate in this conversation.