i have two input type to change action parameter on form, i’m using radio button and select option to get the parameter route
this is the code
<form method="GET" action="{{ route('news.search') }}">
@method('get')
....
</form>
this is the first input, i’m using the radio button
<button type="button" class="btn-icon btn-sm" data-id="{{ $icon->slug }}" id="addIcon">
<input type="radio" id="{{ $icon->slug }}" name="icon" class="radio-btn" value="{{ $icon->slug }}" >
<span class="my-auto" height="16" width="auto">{{ $icon->name }}</span>
</button>
and this is the second input i’m using select option
<select class="form-control select-category" name="category" id="category" width="100%">
<option selected value="all-categories">All Categories</option>
@foreach($categories as $category)
<option value="{{ $category->slug }}">{{ $category->name }}</option>
@endforeach
</select>
and this is the button input
<button type="submit" class="btn-search border-0 d-flex justify-content-center btn-block">
Search
</button>
i want to change action form input dynamically using select option and radio button iput that i have click it,
expectation form action input is : action=”{{ route(‘news.search’), [$input1,$input2]}}