可変長のテキストを含む div があります
<div id="paragraph">
blah blah blah <em>Something Important</em> more blah
</div>
上記に 2 つのボタンを含む別のボタンを動的に追加したいのですが<div id="buttons">
、これ<div id="buttons">
は常に右に揃えて、含む 内にインラインで表示する必要があります<div id="paragraph">
。たとえば、次のようになります。
This is a paragraph, and part of it are two buttons that should always align right at the end. [button1][button2]
<div id="buttons">
JavaScript または JQuery で追加部分を行うにはどうすればよいですか?