javascript - Clearing input type='file' / using jQuery

Published: 10 April 2024
on channel: Code Samples
72
0

Is it possible to clear an input type='file' / control value with jQuery? I've tried the following:
$('#control').attr({ value: '' });

But it's not working.
JSFiddle: http://jsfiddle.net/rPaZQ/


On this page of the site you can watch the video online javascript - Clearing input type='file' / using jQuery with a duration of hours minute second in good quality, which was uploaded by the user Code Samples 10 April 2024, share the link with friends and acquaintances, this video has already been watched 72 times on youtube and it was liked by 0 viewers. Enjoy your viewing!