Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use anchor element to open file

$("#btnSelect").click(function() {
  var $input = $('<input type="file" />');
  $input.change(function() {
    console.log("selected file:" + $(this).val());
  });
  $input.trigger('click');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #anchor #element #open #file
ADD COMMENT
Topic
Name
2+3 =