Place this part of code outside your function and inside the jQuery on-DOM-ready function:
$(function() { $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } }); Note that your functions must not be inside the on-DOM-ready function. So your final result should be like this: function showUser(str) { $('#content1').load("select.php?q="+str); } $(function() { $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } }); Also, check if #content1 is a visible element. In other words: see that you didn't use display: none on it. -- Isaak Malik Web Developer