Question: I'm facing problem with jquery 

here is my code 

```
<script type='text/javascript' src='jquery-1.10.2.min.js'></script>
<script type="text/javascript">
$(function() {
$(".more2").click(function() {
   var element = $(this);
   var msg = element.attr("id");

    $.ajax({
    type: "POST",
        url: "insta2.php",
        data: "lastmsg="+ encodeURIComponent(msg),  

            success:function (data) {

                $("#morebutton").replaceWith(data);

            }   
});

    return false;
    });
});
</script>

  <span class="more" id="morebutton">
  <a id="1" class="more2" title="Follow" href="#" style="color:#000">
               Read More
</a>
 </span>

```

and here is insta2.php

```
<?php

if(isset($_POST['lastmsg']))
{
$a=  $_POST['lastmsg'];
$a = $a++;
?>
<br>
  <span class="more" id="morebutton">
  <a id="<?php echo $a;?>" class="more2" title="Follow" href="#" style="color:#000">
    <?php echo $a;?>           Read More
</a> </span>
<?php }?>

```

my jquery only one 1 set and after that every click not working

is there any way to continue counting ? 

like this

Read More 
1 Read More 
2 Read More 
3 Read More 
4 Read More 
and so on...

Answer: 
Looking at the [source](https://github.com/thquinn/DraggableGridView) you provided, the `DraggableGridView` class is already under `src`. So adding the jar that contains the same is redundant and dex will complain about duplicate definitions.

To fix it, just remove the `DraggableGridView.jar` from your project.
Project - build Path - Libraries.  

Check if android private libraries contains the same jars listed in the libraries in the first place. If so remove private libraries and leave the jars.  

That worked for me.