autocomplete - if no results add

autocomplete - if no results add

When typing in the autocomplete field, if no there are results I want to provide an option to add to the database. I'm thinking maybe a pop-up asking if user want's to add so I can include other form items and when submitted go back to the form they were on.

Thanks