Refresh smartselect options with new content without closing and opening again?

is there a way to update the content options of smart select without closing and opening again?

I have tried many things but the smart select only is updated when closed and opened again with new options!

reason it is that some options has child options to be selected from then the need to update the options to the second level and so on…

any ideas how to make this work! thanks!