Of course, you can try the following:
function searchCallback(html) { var html_hidden = $('<div style="display:none;" class="hidden_insert">'+html+'</div>'); $('#divSearchResults').html(html); $('#divSearchResults .hidden_insert').slideDown('medium'); }
Not the prettiest thing, but it will work. You could do this by creating a CSS style for the "hidden_insert" class, which by default will make an element with this class hidden. Also, on your backend where you send this date from, you can wrap it there, and not in your javascript. The script could be simplified to the following:
function searchCallback(html) { $('#divSearchResults').html(html).find('.hidden_insert').slideDown('medium'); }
I have not tested any of them, but they should work.
source share