I have created a plugin that creates a widget.
On the widget form i am using jquery functions that i load using wp_enqueue_script.
When adding the widget on a sidebar, everything works. Then when i press the Save button, my jquery brakes and functions are not working anymore… I need to refresh the widget page in order to load the js again…
Am I doing something wrong ? is there any solution so my js file is loaded again when pressing the Save button?