How to make the numbers automatically using jquery append ..?
<p>Hello all I want to ask, how to make the numbers automatically using jquery append ..?
I have made ​​it but still failed
My source code is : </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Help Help&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;input type="button" id="button" value="Create a number from 1 to N"/&gt;
    &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        $(document).ready(function ()
        {
            $('#button').click(function()
            {
                $('#result').append('&lt;div class="number"&gt;Numbers To ......&lt;/div&gt;');
            });
        });
    &lt;/script&gt;
&lt;/body&gt;
&lt;hr&gt;
results from click button
&lt;hr&gt;
&lt;div id=result&gt;&lt;/div&gt;
</code></pre>

<p></p>
