title: What's wrong with JS (doesn't work in Mozilla)?
body: <p>I have a form: </p>
  
  <pre><code>&lt;form  name="green" class="form-inline" onchange="javascript:send_choose()" enctype="multipart/form-data"&gt;
  &lt;br&gt;&lt;br&gt;
    &lt;div&gt;
        &lt;input type="text" class="form-control" style="width:100%;" name="linkgreen" id="linkgreen" placeholder="some example"&gt; &lt;br&gt; &lt;br&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And JS in the bottom: </p>
  
  <pre><code>&lt;script language="JavaScript" type="text/javascript" src="js/jquery-1.11.1.min.js"&gt; 
  function send_choose() {
      event.preventDefault();
      var link = document.getElementById('linkgreen');
      $.ajax({
          type: 'POST',
          url: 'include/create_file.php',
          data: {
              name4: 'weblink.txt',
              link: link.value
          },
      });
      $('input[type="text"]').attr('disabled', 'disabled');
      $('input[type="submit"]').attr('disabled', 'disabled');
  };
  $(document).ready(function () {});
  &lt;/script&gt;
  </code></pre>
  
  <p>It perfectly works in Chrome and IE and doesn't work in Mozilla.</p>