There is a code that when you select the animation type, change
of the element of the
, everything works here, the problems in the other.
If you change the type of animation to go to
, we will see that the contents of the
really changed. But when mouse over on
we see a log with the old animation.
It turns out that variable
var dropdown_container = $(this).find('>.dropdown-container');
after receiving the contents once, then refuses to get new content (be updated).
Question: what is the problem and how to get this variable to update its contents?Code on codepen.io