hai everybody am using following code to preview the image before uploading it. but am unable to display the image please help me.
<SCRIPT type="text/javascript">
function preview(what){
document.getElementById("previewField").src=what.value;
}
</SCRIPT>
<INPUT type="file" id="picField" onchange="preview(this)">
<IMG id="previewField" alt="Preview">
thank you.