Accordion Panel Id


I was wondering, is it possible to get an accordion’s content panel’s ID? or perhaps set it?

I wanted to have this function where every time a certain panel activates, there is an alert that pops up. Each with different messages.

Example, panel 1’s message is “Hello World!”. Panel 2’s message is “I love YII!”. Panel 3’s message is “Programmers rule!”

Can it be done?