title: Drag and Drop Javascript on iOS
body: <p>Hi all I have the following code for my drag and drop feature. However I need to adapt it to work on iOS. Being rather new at Javascript I'm not really sure how to go about adapting the code I already have to work with what I have read.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>            function allowDrop(ev){
                              ev.preventDefault();
                      }
  
                      function drag(ev){
                              var drag = ev.dataTransfer.setData("content", ev.target.id);
  
                      }
  
                      function drop(ev){
                              ev.preventDefault();
                              var image= ev.dataTransfer.getData("content");
                            if ( image == ev.target.id) {
                              ev.target.appendChild(document.getElementById(image));
                              }
                            else {
  
                            }
                      }
  </code></pre>
  
  <p>Any help would be great. I assume the problem is I need some sort of listener for the touch events?</p>