Can't get value of input type=“file”?

后端 未结 8 2061
谎友^
谎友^ 2020-11-27 16:48

I have a

When I\'m using: alert($(\"#uploadPicture\").val());

It ale

8条回答
  •  暖寄归人
    2020-11-27 16:59

    $('input[type=file]').val()
    

    That'll get you the file selected.

    However, you can't set the value yourself.

提交回复
热议问题