I am loading pictures from a photos folder manually like this :
<div class="container">
<div class="item">
<a href="#">
<img type=file src="photos/01.jpg" />
</a>
</div>
<div class="item">
<a href="#">
<img type=file src="photos/04.jpg" />
</a>
</div>
How can i load all the pictures (jpg and png) automatically from this folder alphabeticaly ?
The pictures have random names, and are sometimes jpg or png.
The idea is to be able to load all the pictures from the folder, without specifying the number of pictures in the folder. for exemple if there is 2 pictures, it loads 2 pictures. 3 pictures in the folder, it load 3 pictures...
exemple of picture names to display: rrededd01.jpg, treddeeda.png, zsa99889.jpg
Thank you for your help.