file input disable open file picker javascript 1

file input disable open file picker javascript

HTML:

  
JS:
$('.openf').click(function(e){
      e.preventDefault();
});

Here is what the above code is Doing:
1. Prevent the default action of the click event.
2. Trigger the click event of the file input.
3. Prevent the default action of the click event.
4. Trigger the click event of the file input.

Similar Posts