How to show multiple text fields on button click one by one
<p>I need to add 2-3 text fields on button click one by one, where 'L' is the ID of the textfield. I am trying this code, but instead of using jQuery I want to use simple javascript because I am implementing this code in a Joomla environment.</p>

<pre><code>function WrapperScript () {
    JQuery('#wrapper1 button').click(function(){
        for (var i=1;i&lt;=4;i++)
        {
            var id='#L'+i;
            var setting = JQuery(id).css('display');
            if (setting=='none')
            {
                JQuery(id).css('display', 'block');
                break;
            }
        }
    });
}
</code></pre>
