I want to detect (using javascript/jQuery) whether the user's browser supports multiple
attribute to input type='file'
tag. A feature of HTML5 to add multiple images.
<input type=file name="images" value=" " multiple=""/>
Please suggest me how can i do this.
var i = document.createElement("input");
if (typeof i.multiple !== 'undefined') {
// supports multiple
}
you can use modernizr
which is developed for this purpose.
http://modernizr.com/
you can detect support of a feature like placeholder
in this way:
if (!Modernizr.input.placeholder) {
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With