Home  >  Article  >  Web Front-end  >  A brief discussion on the problem that using attr to modify form enctype in jquery does not work

A brief discussion on the problem that using attr to modify form enctype in jquery does not work

高洛峰
高洛峰Original
2016-12-05 13:18:341198browse

To upload files, you need to set the enctype of the form element to 'multipart/form-data'. You can use jquery's attr method to test successfully on the newer mainstream browsers, but it will not work on IE. Later, I checked that Internet Explorer 6, 7, and 8 (9+ was not tested because the development machine is

The above article briefly discusses the problem that jquery uses attr to modify the form form enctype and it does not work. This is all the content that the editor has shared with you

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn