title: Programmatically add specific JavaScript to specific questions in Qualtrics?
body: <p>I have 50 pieces of JavaScript code generated in a text file with Python, and currently I have to go click on every of my 50 questions, open up JS editor, then copy and paste the corresponding script from my text file...</p>
  
  <p>I know I can add generic JavaScript code as a header to my survey questions in "look and feel", but that won't work because each piece of my JavaScript code corresponds with a specific question in my survey; also my JS defines a method for the Qualtrics.SurveyEngine object, like <code>Qualtrics.SurveyEngine.addOnload(function() {
  ///my code
  });</code>
  and putting it in header JS doesn't seem to produce any effect.</p>
  
  <p>More background info: I'm implementing an attention check in my survey to make sure the survey takers listen to the audio clip in each question. Every audio element has an ID like "myAudio1", "myAudio2", ... ,"myAudio50", and I generated my attention-check JavaScript code for each question. I imported my 50 questions on Qualtrics, but I don't want to manually "import" those 50 pieces of JS code!</p>