i am using javascript to change the value of img src at run time..
i am using fileupload in html to take the input from use and i want that image to be uploaded in the “Image1” image tag.. but it is not uploading the image..
i am using:
function upl(obj) {
filename = obj.value;
alert(filename);
document.getElementById('Image1').src = '"' + filename + '"';
alert(document.getElementById('Image1').src);
}
in the alert it is showing image name along with the local url..
where i am calling upl() onchange of fileupload.
can someone help me out..
thanks..
remove the ” and than try to check.
like as below