A quick look at the docs would have revealed that .html()
assigns HTML content to an element and the front page of jquery.com shows that $('#response')
selects an element by ID.
$('#response').html(data);
You put this code in the callback function where you currently call setTimeout
.
solved How to Set Response In JQuery [closed]