customize your input style freely
npm install pretty-input
import handleInput from 'pretty-input'
handleInput('#file2', {isFile:true, showFileName: false});
handleInput('#file3');
Currently only support for input[type=file]
handleInput(select[, agrs])
key | value |
---|---|
select | cssSelector/elementNode/NodeList |
args | default { isFile: true, showFileName: true, innerElement: undefined, innerText: undefined } |