All right, let me kindly try again.
You said:
"When [(choice=='Add Vendor to List')"] happens" I want to enable the $.ajax call to be able to add a new vendor to the database and re-do the original code again where the added vendor will now be in the database and available as a choice in the selection."
The
"'Add Vendor to List'" represents a
new path in the overall logic of your program. This is:
"an exception." You must now re-direct the user to an entirely-new section of the software – "an entirely-new URL" – which will enable him to successfully add the new vendor.
Eventually, if he actually does succeed in adding a new vendor, your program logic must then re-direct him back to "where you are now." This time, the vendor will be there.
The flaw in your original statement of the problem is that
"the HTTP protocol is stateless." You cannot
directly express logic in the manner that you originally stated.