title: Click and Mousemove for iPhone?
body: <p>I am having trouble with mouseover and click events. It works on the desktop/laptop web browsers but not on iPhone's Safari. Here is the code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function tog(v){return v?'addClass':'removeClass';} 
  $(document).on('input', '.clearable', function(){
  $(this)[tog(this.value)]('x');
  }).on('mousemove', '.x', function( e ){
  $(this)[tog(this.offsetWidth-100 &lt; e.clientX-this.getBoundingClientRect().left)]('onX');   
  }).on('click', '.onX', function(){
  $(this).removeClass('x onX').val('');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>The X is the clear icon that appears in each search field but I just cant "click" it on the iPhone. Replacing 'mousemove' for touchmove didn't work. And I wasn't able to adapt any jQuery Mobile plug-in unfortunately, i am a noob coding. Thank you! Happy Hallo'</p>