when i select a pdf file from my pc and click on submit button. Default embeded pdf should be replaced by new pdf that i uploaded. By using only javascript
<form action="" id="myform" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile" placeholder="Upload file" id="">
<button id="submitfile" class="filesubmitbutton">Submit</button>
</form>
<embed id="myEmbed" src="../NISHANTKUMAR.pdf" type="application/pdf" width="100%" height="600px">
can uderstand how to do it i tried to change src of embed using javascript But i cant get actual path of file in input