I have on file control that accept only pdf file. and i want to validate file that accept only pdf file as well as if another file is selected than recreate the file control in div tag with same name as well as same id.
validation must be javascript or jquery.
...
<div>
<input type="file" name="file" id="file1" />
</div>
...