title: Default value not working in select tag if the user doesn't select any options?
body: <hr>
  
  <p>Hello, 
  I'm trying to make a default value of language selection to be English whose value is 1. So if the user doesn't select language option, it should still be 1 so that I can run my algorithm. But when I test it that doesn't select any value, it doesn't make it default value.</p>
  
  <p>And I decided to check the datatype of language option, it's a string type, but even if I make if(isNaN(languageOption)){ languageOption = "1";}, it's still not working. Can anyone tell me why?</p>
  
  <p>Thank you for your help</p>
  
  <pre><code>&lt;body&gt;
  &lt;div&gt;
      &lt;a href="javascript:location.reload(true)"&gt;&lt;img src="image/MindScribe-cursive.png" id="cursive"&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="container"&gt;
      &lt;img src="image/MindScribe-zebra.png" id="ImageEnterVariables" alt="Hello, I'm Stripes"&gt;
      &lt;img src="image/MindScribe-zebra2.png" id="onlyShowZebraImage" alt="Hello, I'm Stripes" style=display:none&gt;
  
      &lt;select id="languageSelection" style=display:none&gt;
          &lt;option value=""&gt;Choose a language&lt;/option&gt;
          &lt;option value="1"&gt;English (American)&lt;/option&gt;
          &lt;option value="2"&gt;Chinese (Mandarin)&lt;/option&gt;
          &lt;option value="3"&gt;Japanese&lt;/option&gt;
      &lt;/select&gt;
  &lt;script&gt;
      var languageOption = parseInt($("#languageSelection").val() );
      $("#languageSelection").on("change", function(){
  
          if(isNaN(languageOption)){ languageOption = "1";}
          languageOption = $(this).val();
  
          console.log("langugeOption is " + languageOption);
  
          console.log("Language changed to: "+ $(this).find("option").eq( $(this)[0].selectedIndex ).text() + " (Index: "+languageOption+")" );
  
          console.log(typeof(languageOption));  // Outputs string
  
          endingArr = [];
          runThroughArr = [];
          randomArr = [];
  
          if(languageOption === "1"){
              console.log("English");
              for(i = 0; i &lt; intro_playList.length; i++){
                  if(intro_playList[i].stage === "ending"){ endingArr.push(i); }
                  if(intro_playList[i].runThrough){ runThroughArr.push(i); }
                  if(intro_playList[i].random){ randomArr.push(i); }
              }
          }
          else if (languageOption === "2"){
              console.log("Chinese");
              for(i = 0; i &lt; intro_playList_chi.length; i++){
                  if(intro_playList_chi[i].stage === "ending"){ endingArr.push(i); }
                  if(intro_playList_chi[i].runThrough){ runThroughArr.push(i); }
                  if(intro_playList_chi[i].random){ randomArr.push(i); }
              }
          }
  
      });
  &lt;/script&gt;
  
  &lt;/body&gt;
  </code></pre>