How to use drag and drop feature for Android phone phone app

I want to use drag and drop functionality in android phone app. I tried all of this but didn't work.

i used this

<script>  
  $(document).bind('pageinit', function() {
    $( "#sortable" ).sortable();
});

      

i have included all required files but still not working i want to use drag and drop on table row

<table style="width:100%">
  <tr>
    <td>Jill</td>
    <td>Smith</td>      
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>        
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>        
    <td>80</td>
  </tr>
</table>

      

on a website, that is, in a web browser, it works, but on a mobile application, it doesn't work. Please help me for this.

+3


source to share


1 answer


If you are using jquery.ui, it will only work on PC browsers and is not responsive to touch. You also want it to be touch responsive, you just need to enable jQuery UI Touch Punch in the Chapter section after the jQuery UI. And it should work fine. You can first test your application in the Chrome simulator for different devices using (Ctrl + Shift + I) and selecting the desired device.



Hope this helps. Please mark as answer if this answers you.

0


source







All Articles