title: Javascript: Setting an input field value is not working in IE11
body: <p>I use this piece of javascript to create an input field with some data (<em>v</em> and <em>k</em> are set):</p>
  
  <pre><code>element = document.createElement('input');
  element.value = v;
  element.name = k;
  </code></pre>
  
  <p>This works in Chrome, but in Internet Explorer (tested with v11), only the <code>name</code> attribute is set and not the <code>value</code>.</p>
  
  <p>Strangely, when I use jQuery, this works:</p>
  
  <pre><code>element = document.createElement('input');
  $(element).attr("value", v);
  element.name = k;
  </code></pre>
  
  <p>Why isn't plain javascript working here? It should work, according to <a href="http://msdn.microsoft.com/en-us/library/ie/ms535126%28v=vs.85%29.aspx" rel="nofollow">MSDN</a>.</p>
  
  <p><br></p>
  
  <p><strong>Update</strong></p>
  
  <p>I expected <code>element.value</code> to create a value attribute, but it doesn't. Indeed the value is set correctly, but it doesn't show that in a newly created value attribute or a change of the existing value attribute. It seems I tested this the wrong way.</p>