title: Simple Form ID not being detected in jQuery
body: <p>I'm using the simple form gem in my ruby on rails app. In my app, I'm also using ActiveStorage to hold images.</p>
  
  <p>I'm using <code>Krajee</code> jquery file-input</p>
  
  <p>I want to be able to upload images using the simple form gem. Here is my input:</p>
  
  <pre><code>&lt;%= f.input :image, input_html: { id: :image_input } %&gt;
  </code></pre>
  
  <p>I'm supposed to initialize the input using this command (as provided by the docs)</p>
  
  <pre><code>&lt;script&gt;
  
    $(function() {
  
          // initialize with defaults
          $("#image_input").fileinput();
  
          // with plugin options
         $("#image_input").fileinput({'showUpload':false, 'previewFileType':'any'});
  
    });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The jquery code is not hiding the input. I have checked if jQuery is installed and made sure that it was working. I imagine that the problem lies somewhere in the way I'm creating my input field, but I'm not too sure.</p>
  
  <p>Any help is appreciated.</p>
  
  <p><strong><em>UPDATE</em></strong></p>
  
  <p>When I check the page source, the input does have the correct id, however, the style of the input is set to <code>display: none</code>. I'm guessing that has something to do with the Krajee Library.</p>
  
  <p>I tried this post: <a href="https://stackoverflow.com/questions/8953324/change-id-in-simple-form">Change id in simple form</a></p>
  
  <p>it did not work.</p>