JQuery - ajax load
问题 Some content... Now I need to load some file into inner -block, but save it's old content. $('#inner').load( 'pathToFile.html' ); Will replace old content of div. Thanks. So, as I understand my code should be: old = $('#inner').html(); $('#inner').load( 'pathToFile.html' ); $('#inner').html( old + $('#inner').html() ); ? 回答1: I'd recommend against using stuff like 'load' and the other ajax helpers. They're just wrappers around $.ajax. Off the top of my head, maybe you want: $.ajax( { url: