title: How to have jQuery restrict file types on upload?
body: <p>I would like to have jQuery limit a file upload field to only jpg/jpeg, png, and gif. I am doing backend checking with <code>PHP</code> already. I am running my submit button through a <code>JavaScript</code> function already so I really just need to know how to check for the file types before submit or alert.</p>