check if file exist in javascript?
<p>i have to display auto-generated images from a folder in html.</p>

<p>how can i check if file exist in javascript/jquery so i can do a for-loop and display them all. they will be numbered 1.jpg, 2.jpg and so on.</p>
