HTML inside of a JavaScript loop
<p>I'm trying to create 10 radio buttons, labeled 1-10 with a for loop inside of my html and I can't get it to work.</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;h2 style="text-align:center"&gt;
        On a scale from 1-10, how likely are you to recommend this site to a friend or colleague?
      &lt;/h2&gt;
        &lt;form id="NPSform"; style= "text-align:center"&gt;
            &lt;script&gt;
                for (var i = 1; i &lt;=10; i++) {
                    &lt;input type="radio" name="scores" id="i" value="i"&gt; i
                }
            &lt;/script&gt;
            &lt;input type="submit" name="mysubmit" value="Submit"/&gt;
        &lt;/form&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanks. I'm new to JS so I'm still learning a lot.</p>