How to create a menu in javascript dynamically after button click
<p>After click button it will dynamically generate an id for that particular button clicked on the document. ( like a Google gadgets every gadgets has menu option..)
Thing I've to do is... for generated id I've created a menu option as gadget menu options below the button.</p>

<p>this is my code:</p>

<pre><code> var htmlTag = document.createElement("div");

 htmlTag.innerHTML+= "&lt;div style='position:absolute;border:solid 1px black;background-color:white;padding:4px;'&gt;";
 htmlTag.innerHTML+= "&lt;ul &gt;&lt;li&gt;&lt;a href=''&gt;Edit&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=''&gt;Delete&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;";
 htmlTag.innerHTML+= "&lt;/div&gt;";
 alert(htmlTag);
 $("#"+submenuid).html(htmlTag);
</code></pre>

<p>submenuid is dynamically generated id... for button..</p>
