I'm creating a survey form using Smarty templates in which I want to attach an event with radio buttons of a particular question such that it pops-up a message when any one of them is clicked. So I want to add a click/change event listener on them but dont know how to do it using php. As I do not know the radio button id in advance (they are generated on the fly), I'm not sure if I can use Javascript here. Any solutions/suggestions?
Google search returns all sort of answers for adding event listeners for android and javascript which are of no use!