title: JS onclick mobile alternative - onclick deprecated on iOS and Android too
body: <p><strong>I have this in HTML</strong></p>
  
  <pre><code>&lt;div class="aplplyevent"&gt;
    &lt;input type="hidden" name="type" value="" /&gt;
    &lt;div class="hidden-div" id="hidden-div"&gt;
      Here is my form that is displayd on click and the button APPLY EVENT will disappear!(As long as my form already has a button!)
    &lt;/div&gt;
    &lt;span style="display:block"&gt;&lt;button class="btn btn-applyevent" onclick="getElementById('hidden-div').style.display = 'block'; this.style.display = 'none'"&gt;APPLY EVENT&lt;/button&gt;&lt;/span&gt;
  </code></pre>
  
  <p><strong>This in CSS</strong>:</p>
  
  <pre><code>.hidden-div {
    display: none;
  } 
  </code></pre>
  
  <p>On desktop devices works fine but on iOS and Adroid my main button "APPLY EVENT" do not disappear and I have 2 buttons, the main button(who stop to dissapear) and the form button.</p>
  
  <p><strong>iOS</strong> since v8 and now <strong>Android too</strong> seems to stop support for "onclick".</p>
  
  <p>Can someone please help me? I'm beginner in JS!</p>
  
  <p><a href="https://jsfiddle.net/7fuv2Lb9/2/" rel="noreferrer"><strong>JSFiddle Here</strong></a></p>