How do I insert when a given in the search field and if it does not aperecer type a select ...

How do I insert when a given in the search field and if it does not aperecer type a select ...

How do I insert when a given in the search field and it does not exist aperecer type a select with a button where I can add that given in the table where did the research , as shown.

Note : The search filter longer works.