Question: I have this function below and I need to append its result inside a div called test. How can i do it?

```
function(response) {
    alert('Your name is ' + response[0].name);
}

```

Answer: 
Place an animated gif inside of the loading div. I assume you are using a background image.

`<div class="loadingDiv"><img src="loading.gif" alt="loading" /></div>` 

Update

```
.loadingDiv img {display:none}

<div class="loadingDiv">
<img src="loading.gif" class="load1" alt="loading" />
<img src="loading.gif" class="load2" alt="loading" />
<img src="loading.gif" class="load3" alt="loading" />
</div>

 $('.loadingDiv img.load1', $item).show();  //  $('.loadingDiv img.load1', $item).show().parent().show();
 $('.loadingDiv', $item).show();

```

or

```
<div class="loadingDiv">
<img src="loading.gif" class="loading" alt="loading" />

</div>

 $('.loadingDiv img', $item).attr('src', 'loading2.gif');
 $('.loadingDiv', $item).show();

```
You could try using [.fadeOut()](http://api.jquery.com/fadeOut/) and [.fadeIn()](http://api.jquery.com/fadeIn/) instead of .show() and .hide().