title: Error onchange (function) is not defined at HTMLSelectElement.function
body: <p>I'm a beginner in programming and today I need your help!(please :'()</p>
  <p>I want to create a survey,so I begin to code and a error appear and I search a lot in internet but no solution.</p>
  <p>There are my html and js codes.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/*the code isn't finish, this error block me(code name is sur.js*/
  let choi;
  let choix1 = 1;
  let choix2 = 1;
  let choix3 = 1;
  function submit(){
  console.log(choi);
  }
  function changer(){
  getElementById('survey');
  choi= sel.options[sel.selectedIndex];
  console.log(choi);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Robotale v8 : surveys&lt;/title&gt;
  &lt;link rel="icon" href="https://www.mediafire.com/convkey/a940/qp7vky5trrp8hmzzg.jpg"/&gt;
  &lt;/head&gt;
  &lt;body style="background-color:#000000"&gt;
  &lt;br&gt;
  &lt;a href="Index.html"&gt;
  &lt;img src="https://www.mediafire.com/convkey/6586/bb0x08ff0tvjhepzg.jpg" onclick="redirection()"/&gt;
  &lt;/a&gt;
  &lt;br&gt;
  &lt;font face= "Verdana" size="4" color="#3399ff"&gt;The Robotale Website is here for your Robotale time!!!&lt;/p&gt;
  &lt;br&gt;
  &lt;p&gt;Surveys:&lt;/p&gt;
  &lt;br&gt;
  &lt;form&gt;
  &lt;label for="survey"&gt;Your feedback about this website!!!How do you like it?&lt;/label&gt;
  &lt;select id="survey" name="survey" type="datalist" onchange="changer();"&gt;
  &lt;datalist id="surveys"&gt;
  &lt;option value="No"&gt;Nope!!!&lt;/option&gt;
  &lt;option value="Yes"&gt;Yes!!!&lt;/option&gt;
  &lt;option value="liv"&gt;THIS WEBSITE IS MY LIFE IF YOU DELETE IT I WILL DIE!!!(calm down please)&lt;/option&gt;
  &lt;/datalist&gt;
  &lt;/form&gt;
  &lt;a href="Index.html"&gt;link to principal page&lt;/a&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;input type="submit" value="Send your feedback" id="food" onclick="submit()"&gt;
  &lt;br&gt;
  &lt;script src"sur.js"&gt;&lt;/script&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>