I want to display data on click of an icon. The data is shown for the first time, but it is not showing for the second time. I am appending data to the `$('body')` element.

my view.js.html.erb is

```
$(".view-schemes").live('click', function(e) {
    var schemes_url = "<%= show_schemes_products_path %>";
    var p_id = $(this).attr('id');
    get_data(schemes_url, { id: p_id }, function(data) {
      $('body').append(data);
    },"html");
  });

```

And I am getting data for the second time, but data is not appended to the body. Is there any solution or an alternate way of writing this query?