0
I am making a form with sending 2 types of photo, and I would like to know how to do a javascript check to see if the person sent any of the 2 options, and if you have not sent any of the 2 does not proceed to next page...
<div class="fileUpload btn">
<div>
<span style="width:250px">
<img src="images/enviar1.png" width="235" height=""/></span></div>
<input type="file" name="img1" id="img1" accept="image/*" capture="camera" onchange="" class="upload" />
</div>
<div class="fileUpload btn" >
<div>
<span style="width:250px">
<img src="images/enviar2.png" width="235" height=""/></span></div>
<input type="file" name="img2" id="img2" accept="image/*" capture="camera" onchange="" class="upload" />
</div>
<input style="margin-left:25px;" type="submit" name="botao" id="botao" value="CONTINUAR"/>
Uses jquery in project?
– Pedro Henrique
jquery-2.2.1.min. js
– Leonardo Ribeiro