Hi Dormilich, but all I have access to is data which is being passed into the function. So will I need to look inside data, and then get the div id, so do you mean
It contains a whole string of html, which is a complete div.
Basically whats happening is Im dynamically adding a new div after a user has added a new category via a modal, as the page doesnt refresh. Its to add the new category in without the need to refresh
That bit works fine, this is a seperate operation I need to where I use that id value to pass to another function to make something else work.
The data bit is all working fine, its just this new bit I need and it will only work once I can grab that unique id and pass it into its own var like this