title: Using JavaScript to add an attribute to all <input type="file">
body: <p>My question is regarding a WordPress site. Using <strong>JavaScript</strong> or <strong>jQuery</strong>, on the entire front-end of the website, I would like to add the attribute <code>accept=&quot;image/*&quot;</code> to all of the <code>&lt;input type=&quot;file&quot;&gt;</code>. Could someone please help me achieve this?</p>