How to add touch events to a class?.. prefereably through jquery
<p>How can you do something like the following?</p>

<pre><code>$('.myDivs').ontouchstart(function(){
alert('touch');
})
</code></pre>

<p>the only way I appear to be able to implement touch events is using javascript.. like so </p>

<pre><code>document.getElementById('singleDiv').addEventListener("touchstart",touchHandler, false);
</code></pre>

<p>However I would like to implement this to a class, rather than an id... therefore is there a way to do it using jquery like the above example?....</p>

<p>I have found the answer:</p>

<pre><code>$('.myDivs').bind('touchstart', function (event) { alert('touch');});
</code></pre>

<p>Kind regards J</p>
