Level 51
If the date picker has an event function, use the following from your javascript to emit an event back to your livewire component.
<script>
Livewire.emit('postAdded')
</script>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
here is my code -
livewire blade:
<p class="datePick">
<span> date </span>
<input type="text" name="date" wire:model.live='date' placeholder="Date..." autocomplete="off">
</p>
livewire component:
public function updatedDate() {
dd($this->date);
}
this is a date picker js plugin. when i click here in input field the datepicker calendar auto displaying and i select the date.
Please or to participate in this conversation.