title: JQuery script doesn't work twice
body: <p>I am trying to create a quiz within a website page. The aim is that every time you press next, a new question will open up within the page. However, calling upon the script a second time doesn't work.</p>
  
  <p>To achieve this, I first created a link called 'next'.</p>
  
  <pre><code>&lt;a href="addquiz.html" name="next" id="1"&gt;Next&lt;/a&gt;
  </code></pre>
  
  <p>This calls upon a script which opens q1 from addquiz.html</p>
  
  <pre><code>&lt;script&gt;
  $("#1").click(function() {
  $("#load").load("addquiz.html" + ' #q1');
  event.preventDefault();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>In this script there is a submit button which calls upon the function goupone, which increases the id of the link by 1 (eg; from 1 to 2)</p>
  
  <pre><code>&lt;div id="q1"&gt;
  &lt;h3&gt;5 + 19 = ?&lt;/h3&gt;
      &lt;input type="text" width="6" name="" id="question-1-answers" value="" /&gt;
      &lt;input type="submit" value="Check" onClick="goupone();" /&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  function goupone(){
  var v=document.links[9].id;
  vi=parseInt(v);
  vi=vi+1;
  document.links[9].id=vi;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>However, when I click the next button again, nothing happens. Can anyone help?</p>