title: Is it possible to add event listener using PHP?
body: <p>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.</p>
  <p>So I want to add a click/change event listener on them but don't 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?</p>
  <p>Google search returns all sort of answers for adding event listeners for Android and JavaScript which are of no use!</p>