check ajax reposne length code example Example: ajax response length $.get('ajax/test.html', function(data) { alert(data.length); });