How to getting id of the button in beforeclose in jquery popup

How to getting id of the button in beforeclose in jquery popup

My jsfiddle popup have 2 buttons(text1 and text2).
When clicking text1 button, I want to getting this text1 button Id in inside of before close method.Is it possible?

Currently it is getting dialog popup id in alert in beforeclose  method.

My fiddle link :