Hi All,
I've got a custom jQuery script included on my DataObject using Requirements::javascript() within getCMSFields().
The purpose of this jQuery is to check the selected option of a dropdown and hide/show applicable fields related to this option.]
It works like a dream until the user clicks Save. After clicking Save, it would appear I am no longer able to reference any of the DOM objects within the CMS.
Am I doing something wrong? As why would it run perfectly on load, but not after Save - as the file is still included within the source code of the page.
Thanks for your help here, any suggestions?
P.S. Hope you all had a good new year.