I have a html-component that will be reload after a button has been clicked.
Some elements of the component are bound to click and hover handlers.
Everything is working fine until the .load()
-function is called to reload the component.
The elements of the loaded component are not bound to corresponding handlers.
At that point I put the js-script at the end of the component, so that it binds the elements. But after the components relaod the elemnts outside the component are unbound, now.
I've tried it with .on()
, .live()
, .bind()
, .click()
, ... nothing worked.