Place Ajax request on completion of Ajax Request
From your code it seems like that you are binding a click event on $(".icon") when the ajax completes.

However, you are not making another call after completion of first, but instead making a call on $(".icon").

if you dont want to put ajax call here then you can bind icon with on function with parent selector like below:

$( "#parentDiv " ).on( "click", ".icon", function() {
   //make ajax call
});

more info on this here

you can get help for this from 
You should improve your code's clarity to reflect its purpose.