Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な質問です。別のページの「page-result」div に検索結果を表示する方法:
document.getElementById( 'page-result' ).innerHTML = xmlhttp.responseText;
何か案が?!
jqueryを使用する必要がありますか?
$('#page-result').html( xmlhttp.responseText);
別のウィンドウで行う必要がある場合は、それを開くだけです
var newWindow = window.open( 'some params'); $(newWindow.document).find('#page-result')