title: Script is not working in html for my django project
body: <p>first of all. It's my first time asking a question here. So if I do sth wrong I'm sorry for that.</p>
  <p>As I am pretty new to programming I really don't get where the problem is with my HTML right now. Basically, I want the Script to do a new Textbox so that I can do more and more Questions. Kinda like in the image below.</p>
  <p><img src="https://i.stack.imgur.com/WCJSN.png" alt="1" /></p>
  <p>The Code for my html right now looks like that.</p>
  <hr />
  <pre><code>{% extends &quot;index.html&quot; %}
  
  {% block content %}
      &lt;div&gt;
          &lt;h1 class=&quot;text-center&quot;&gt;Multiple-Choice-Aufgaben&lt;/h1&gt;
      &lt;/div&gt;
      &lt;br&gt;
      &lt;div&gt;
      &lt;input type=&quot;text&quot; name=&quot;form-name&quot; placeholder=&quot;Form Name&quot; class=&quot;form-control&quot;&gt;
  &lt;/div&gt;
  &lt;br&gt;
  &lt;div style=&quot;border: 1px solid black&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;I&quot; placeholder=&quot;Frage hier hinschreiben&quot; class=&quot;form-control&quot;&gt;
      &lt;br&gt;
      &lt;i&gt;Short answered text&lt;/i&gt;
  &lt;/div&gt;
  &lt;br&gt;
  &lt;button type=&quot;button&quot; class=&quot;btn btn-lg btn-outline-primary&quot; onclick=&quot;createNewQuestion();&quot;&gt;Neue Frage hinzufügen&lt;/button&gt;
  &lt;button type=&quot;button&quot; class=&quot;btn btn-lg btn-outline-success&quot;&gt;Aufgabenblatt erstellen&lt;/button&gt;
  
  &lt;script&gt;
      let questionCount = 0;
      function createNewQuestion() {
          let DIV = document.createElement(&quot;div&quot;);
          let BR = document.createElement(&quot;BR&quot;)
          DIV.setAttribute(&quot;style&quot;, &quot;border: 1px solid black&quot;)
          DIV.innerHTML = &lt;input type=&quot;text&quot; name=&quot;${questionCount}&quot; placeholder=&quot;Frage hier einfügen:&quot; class=&quot;form-control&quot;&gt;&lt;i&gt;Kurze Antwort&lt;/i&gt;
          document.getElementById(&quot;questions&quot;).appendChild(DIV);
          document.getElementById(&quot;questions&quot;).appendChild(BR);
          questionCount++;
      }
  
  &lt;/script&gt;
  
  {% endblock %}`
  </code></pre>
  <hr />
  <p>I would be really grateful if somebody could help me because I really don't know why the script isn't working at all.</p>