I have very simple form, with input like this:
<input id="my_id" multiple="true" type="file" name="image_name[]" />
Now i have two questions:
- how can i count selected files with jQuery or pure JavaScript?
- how can i limit file selection to, let's say 10, because now it's infinite?