Widget “Save” resetting jQuery hidden fields
I have a widget plugin that I’ve created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to “Add” and “Remove” fieldsets.
Everything works great except for when its time to “Save”. After clicking Save all of the jQuery stops working, all of the hidden fieldsets are shown, and the “Add” and “Remove” buttons no longer work. The only way to continue using the widget properly is to refresh the page
Anyone idea what might be causing this, or a possible solution?