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

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

I have a

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

It ale

8条回答
  •  Happy的楠姐
    2020-11-27 17:04

    You can't set the value of a file input in the markup, like you did with value="123".

    This example shows that it really works: http://jsfiddle.net/marcosfromero/7bUba/

提交回复
热议问题