I'm trying to empty wherever value/text in the textarea, when a file is uploaded from input. It works fine with FF and Chrome, but IE doesn't do the thing. Is there anyway to fix this?
Many thanks in advance.
$('input[type=file]').change(function(){
$("textarea#txt_id").val('');
});
<textarea name="txt" id="txt_id" rows="8" cols="64"></textarea>
<input type="file" name="file" id="file_id" />