How can I stop input type=file from opening 'file selection window' without disabling it? Any method I can try using jquery or javascript?
To reply the comments below:
Yes, this is not a mistake. I need this input file type. My situation here is that I want the user to select file once, after that, it will stop user from selecting again, but not dis开发者_开发技巧abling it.
js:
$file.click(function(event){
if (!theFirstClick) {
event.preventDefault();
}
...
});
精彩评论