image upload for three images
<p>I want to allow user to upload three images and then stop them.Can any one please help me out please.I want to do that using jquery.I have only one browse button and a button to add more.Onclick of ann one more browse button  is displayed.How can i do this in jquery</p>

<p>This is my code</p>

<pre><code>jQuery(document).ready(function() {
     $('.addfile').click(function() {
            var temp = getCount();
            if(temp&lt;2){
                var newpic = $(this).prev().clone();
                $(this).before(newpic);
            }
            else{
                alert('Hmmm...Not allowed');
            }

         });
</code></pre>
