Use js functions. Add onclick events
Print the id's transcript
Use a function for onclick events
Add a results variable
Print results at the end