javascript - Why is my jQuery Ajax json array data getting repeated?

one text

Solution:

From the look of your jQuery code, my guess is that this code:

$("#del_producer").click(function(){

...could be piling up multiple click listeners on del_producer. You need to make that the latest listener function that you add is the only click listener.

The same could be true for $('#producer').on('click', function(event){, but I'd have to see more of the context of the code to know if the same problem might exist there as well. The important thing to remember is that whenever you do .on('some-event', my_function... than doesn't replace any existing listener functions for that event type, it just adds new ones.

Source