tags:

views:

167

answers:

2

hi guys,

<img src="img.jpg" alt="" width="120"  border="0" class="Inline" name="img" id="img" />
<input name="image" onchange="document.img.src=document.blah.image.value;" type="file" />

this code isnt work

anyone know how ?

A: 

blah is form name.

ı want to thumb preview before upload.

samuelsaul
+1  A: 

I would suggest using http://jquery.com/ as it provides many function to do things like this, but using CSS style selectors instead of the nasty javascript dom.

Mex