How to integrate a custom search option with dynamic filelds using CodeIgniter 4 master data listing UI?

Can anyone suggest a best way for integrating search/filter options for master data UI ?

I have around 20 fields/columns to search. I do not want to show 20 separate fields for this. Instead I want to provide a common field for choosing the search column and another field for entering the value.

I am not using any grid libraries for the table data listing.

I am using codeIgniter4 with MySQL in the backend and jQuery in the frontend side.

It will be a great help if someone can suggest a suitable method.