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/


Watch video javascript - Clearing input type='file' / using jQuery online without registration, duration hours minute second in high quality. This video was added by user Code Samples 10 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 72 once and liked it 0 people.