title: Using jQuery to disable input text box type="file"
body: <p>I am trying to disable a HTML input tag with <code>type="file"</code> which I am using to upload images. I am using the Radio options to indicate Yes or No.  If the user clicks no - it should disable the input text box. This is the code I used but I don't know what I have done wrong.</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>$('#inputattrib').change(function() {
    $('#images').prop('disabled', false);
  });
  $('#inputattribf').change(function() {
    $('#images').prop('disabled', true);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="form-group"&gt;
    &lt;p&gt; Indicate Payment Method:&lt;/p&gt;
    &lt;input id="inptrue" type="radio" name="pmethod" value="Yes"&gt;Yes
    &lt;input id="inpfalse" type="radio" name="pmethod" value="No"&gt;No
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
    &lt;label for="file"&gt;Upload your Payment Evidence: &lt;i&gt;for Bank Deposit only&lt;/i&gt;&lt;/label&gt;
    &lt;input id="images" type="text" name="file" class="form-first-name form-control"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>