เปลี่ยนปุ่ม Upload บน HTML

โดยใช้ฟังก์ชั้น onClick="filUpload.click();tmpPath.value=filUpload.value;"


<form name="frmMain" method="post" action="upload.php">

<input type="file" name="filUpload" style="display: none;">
		  
<input type="text" name="tmpPath" size="50">
		  
<strong><a href="#" onClick="filUpload.click();tmpPath.value=filUpload.value;">Click here</a></strong>
		  
<br>
		  
<input type="submit" name="btnSubmit" value="Submit">
	
</form>