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.
ポップアップウィンドウがあります.ポップアップウィンドウの次のボタンをクリックすると、現在の内容divを別の内容に置き換える必要があります.div同じ次のボタンをクリックして別のdivs. これを達成する方法は?
div
divs
次のようなことを試してください:
var a = $('#div1').html(); var b = $('#div2').html(a);
もちろんJqueryを使っています。