Introduction
At the moment I have three upload buttons that upload three different images using three different functions.
Is there a way to have one button that each time you click it, it uploads a new image?
Question
As each upload has a different function, I was thinking hide the button once the image is uploaded. So hide button 2 and 3 and use button one to upload, print out saying image name but hides 1st button and shows second. Repeat this process until all buttons are used (if user uses all).
Update
the 3 images have to upload to there own function.
First image to insertImageFirst
Second to insertImageSecond
Third to insertImageThird
My code
<div class="controls row center-text">
<input type="file" id="FirstImageID" name="image" class="" accept="image/*"
onchange="angular.element(this).scope().insertImageFirst()"/>
<input type="file" id="SecondImageID" name="image" class="" accept="image/*"
onchange="angular.element(this).scope().insertImageSecond()"/>
<input type="file" id="ThirdImageID" name="image" class="" accept="image/*"
onchange="angular.element(this).scope().insertImageThird()"/>
</div>