I am using form ehere use has to type the image name like
images/pic1.jpg
Is there any way that user can graphically select the image and then the path automatically gets populated in that box
thanks
Doubt that is achievable in JavaScript. You may want to use
<input type="file" class="file">
Read more on here: http://www.quirksmode.org/dom/inputfile.html
You can style it with CSS.
If JavaScript is able to do a gallery of some sort using your computer's images, it's quite a security flaw isn't it?