Clearing File Input Values Web-development (jquery) Clearing File Input Values
Clearing File Input Values<script type="text/javascript"> function clearFileInput( id ) { var elem = document.getElementById( id ); elem.parentNode.innerHTML = elem.parentNode.innerHTML; } </script> <form method="post" enctype="multipart/form-data"> <input type="file" name="myFile" /> <input type="submit" name="s" value="Upload" /> </form> <a href="javascript:clearFileInput( 'fileInput1' );">Clear File Input Value</a>
0 Response to "Clearing File Input Values"
Posting Komentar