Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

onurzdgn's avatar

Livewire show hide inputs with selectbox value

Hello everyone, I am using Laravel 11 and Livewire 3. I want to show input's when select box option selected. This is my livewire blade:

Livewire controller:

<?php

namespace App\Livewire\Customer;

use Livewire\Component;

class Contact extends Component
{
    public $name, $email, $phone;
    public $topic = '';

    public function render()
    {
        return view('livewire.customer.contact');
    }
}

This input's are example. I will write true format when it show and hide.

0 likes
1 reply
onurzdgn's avatar
onurzdgn
OP
Best Answer
Level 2

I founded. I need use wire:model.live from "topic"

Please or to participate in this conversation.