This is the shortened version of my code, (no need for all of it), and my goal is that when I click "Edit" that it will show the div with the id XXX. Though to do this, I need to get the id XXX.... how?
I will have many of these on one page and I only want one function
It doesn't appear that there is any relationship whatsoever between the Edit "button" and the element you want to address. is that something that got lost in translation? Or is there really no relationship whatsoever?
If not, then you need to do something that relates them. One way that I've used is to tack a custom attribute onto the event target to know what related element is to be addressed.
That way, you can obtain the value of the custom attribute in the handler.
P.S. If you are using jQuery 1.7, live() is deprecated.