Adding submenu dynamically for smartwizard 2.0
<p>Hi I am using smartwizard 2.0 plugin and I wonder if someone can help me out here.</p>

<p>Basically I am trying to add one more menu dynamically when user clicks the some button. I have given the code below.</p>

<pre><code>function add_submenu() {
        var ulid = document.getElementById("ulsub1");
        var newli = document.createElement("li");

        newli.innerHTML = "&lt;a href=\"#step-7\" class=\"done\" isdone=\"1\" rel=\"7\"&gt;&lt;label class=\"stepNumber\"&gt;7&lt;/label&gt;&lt;span class=\"stepDesc\"&gt;Dy Coupon&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;";
        ulid.appendChild(newli);

        var maintab = document.getElementById("stpContainer");
        var newdiv = document.createElement("div");
        newdiv.setAttribute('id', 'step-7');
        newdiv.setAttribute('class', 'content');
        newdiv.setAttribute('style', 'display: block;');
        newdiv.innerHTML = "&lt;h2 class=\"StepTitle\"&gt;Dynamic Coupon&lt;/h2&gt;&lt;table cellspacing=\"3\" cellpadding=\"3\" align=\"center\"&gt;&lt;tr&gt;&lt;td align=\"center\" colspan=\"3\"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=\"right\"&gt;Hello Name :&lt;/td&gt;&lt;td align=\"left\"&gt;&lt;input type=\"text\" id=\"coupon-8\" name=\"Coupon Name\" class=\"txtBox\"&gt;&lt;/td&gt;&lt;td align=\"left\"&gt;&lt;span id=\"msg_firstname\"&gt;&lt;/span&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
        maintab.appendChild(newdiv);
}
</code></pre>

<p>the problem i am facing is the added menu is not working according to the functionality. </p>

<p>Any help is greatly appreciated.</p>

<p>you can find the smartwizard 2.0 in this website 
<a href="http://techlaboratory.net/products.php?product=smartwizard&amp;action=2" rel="nofollow">http://techlaboratory.net/products.php?product=smartwizard&amp;action=2</a></p>
