title: Local storage not working with drop down menu
body: <p>I have a problem with saving data to storage.</p>
  
  <p>I am using text fields and drop down menus. </p>
  
  <p>Text field are working fine with saving but dropdown menu ain't working. </p>
  
  <p>As you can see i am using local storage from html 5 to save everything</p>
  
  <p>Does anyone know what the problem is ?</p>
  
  <p>Woonplaats and favomuziek are with dropdown menu</p>
  
  <pre><code>$(document).ready(function(){ 
      if (!window.localStorage){
          function createCookie(name,value,days) {
              if (days) {
                  var date = new Date();
                  date.setTime(date.getTime()+(days*24*60*60*1000));
                  var expires = "; expires="+date.toGMTString();
              }
              else var expires = "";
              document.cookie = name+"="+value+expires+"; path=/";
          }
  
          function readCookie(name) {
              var result = ""
              var nameEQ = name + "=";
              var ca = document.cookie.split(';');
              for(var i=0;i &lt; ca.length;i++) {
                  var c = ca[i];
                  while (c.charAt(0)==' ') c = c.substring(1,c.length);
                      if (c.indexOf(nameEQ) == 0){
                          result = c.substring(nameEQ.length,c.length);
                      }else{
                          result = "";
                      }
                  }
                  return(result);
              }
              localStorage = (function () {
              return {
                  setItem: function (key, value) {
                      createCookie(key, value, 3000)
                  },
  
                  getItem: function (key) {
                      return(readCookie(key));
                  }
              };
          })();
      }
  
      load_settings();
  
      $('#gebruikersprofiel').submit(function(event){
          event.preventDefault();
          save_settings();
      });
  });
  
  function save_settings(){
      localStorage.setItem("voornaam", $("#voornaam").val());
      localStorage.setItem("achternaam", $("#achternaam").val());
      localStorage.setItem("woonplaats", $("#woonplaats").val());
      localStorage.setItem("favomuziek", $("#favomuziek").val());
  
      apply_preferences_to_page();
  }
  
  function apply_preferences_to_page(){
      $("body").css("voornaam", $("#voornaam").val());
      $("body").css("achternaam", $("#achternaam").val());
      $("body").css("woonplaats", $("#woonplaats").val() );
      $("body").css("favomuziek", $("#favomuziek").val() );
  }
  
  $(document).ready(function(){
  
      if (!window.localStorage){
          function createCookie(name,value,days) {
              if (days) {
                  var date = new Date();
                  date.setTime(date.getTime()+(days*24*60*60*1000));
                  var expires = "; expires="+date.toGMTString();
              }
              else var expires = "";
              document.cookie = name+"="+value+expires+"; path=/";
          }
  
          function readCookie(name) {
              var result = ""
              var nameEQ = name + "=";
              var ca = document.cookie.split(';');
              for(var i=0;i &lt; ca.length;i++) {
                  var c = ca[i];
                  while (c.charAt(0)==' ') c = c.substring(1,c.length);
                  if (c.indexOf(nameEQ) == 0){
                      result = c.substring(nameEQ.length,c.length);
                  }else{
                      result = "";
                  }
              }
              return(result);
          }
          localStorage = (function () {
              return {
                  setItem: function (key, value) {
                      createCookie(key, value, 3000)
                  },
  
                  getItem: function (key) {
                      return(readCookie(key));
                  }
              };
          })();
      }
  
      load_settings();
  
      $('#gebruikersprofiel').submit(function(event){
          event.preventDefault();
          save_settings();
      });
  });
  
  function save_settings(){
      localStorage.setItem("voornaam", $("#voornaam").val());
      localStorage.setItem("achternaam", $("#achternaam").val());
      localStorage.setItem("woonplaats", $("#woonplaats").val());
      localStorage.setItem("favomuziek", $("#favomuziek").val());
  
      apply_preferences_to_page();
  }
  
  function apply_preferences_to_page(){
      $("body").css("voornaam", $("#voornaam").val());
      $("body").css("achternaam", $("#achternaam").val());
      $("body").css("woonplaats", $("#woonplaats").val() );
      $("body").css("favomuziek", $("#favomuziek").val() );
  }
  </code></pre>