I have a form with a dynamic select box (pulled from a database). I want to give users the ability to add to that select box without leaving the form. I would prefer a thickbox (or modal window) to pop up when the user clicks a link next to the select box. The thickbox popup would have a form where the user can enter the new value to be displayed in the select box. When the user clicks submit, the thickbox (or modal) popup closes, and refreshes just the select box that they were adding to...thus preserving all other data on the form. As a bonus, I would also like for the select box to select the value that was just added.
I have found some close examples, but nothing quite the same. The closest thing I have seen to this is the AddToList plugin for jquery here: http://pelicansareevil.com/jquery/addtolist - but it does not use a thickbox style popup.
I have come close to getting a thickbox version of this working, but I cannot seem to refresh the select box automatically when the thickbox is closed.