Variables Inside JQuery
<p>I have created a Div Tag inside menu <code>li</code> and added a Class <code>Div1</code> to it.
Everything working good.
But Now I want to create div tags with <code>div1</code>, and on another click <code>div2</code> and then <code>div3</code>.</p>

<p>So is it possible to use variable and have a counter inside it?</p>

<pre><code>     $(document).ready(function(){


            $(".menu a").click(function () {

       $("&lt;div&gt; Label &lt;/div&gt;").appendTo(".menu li").addClass("div1");
                                 $(".div1").show(function () {
                           $(".div1").editInPlace({
                            url: "./server",
                            show_buttons: true
                                });//editinplace

                         });//show
                        });//click
        });
</code></pre>
