ボタンのセットがあります:
<div id="button">
<button id="show_link_group">Show Links</button>
<button id="show_contact_group">Show Contacts</button>
<button id="show_update_group">Show Updates</button>
<button id="show_activity_group">Show Action Items</button>
</div>
そして、このdivをその後に挿入しようとしています:
<div id="link_group">
<p1>adsfadsf</p1>
</div>
id="show_link_group" のボタンをクリックした後に挿入することになっています。
$('#show_link_group').click(function() {
$("<div id='link_group'").after('<div id="button"></div>');
});
クリックしても何も起こりません。私はこのドキュメントに従いました:
http://api.jquery.com/insertafter/
私は何を間違っていますか??
ありがとう!