1
Good night.
I have a form that has an input that receives a url by ajax.
How can I take this url and fill in another input to view the image ?
JS (here I pass the id of the input that will receive the url):
$("#thumb").val(json.items[0].volumeInfo.imageLinks.thumbnail);
INPUT 1 (here the input is filled with the url I will save):
<input type="text" id="thumb" value="http://books.google.com/books/content?id=-2DSc30QWpEC&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api" />
INPUT 2 (Here I would like to show the image and I can’t):
<input type="image" src="" id="thumb2" >
It is possible?
I do not understand very well what you want to do. I could explain better?
– Luiz Felipe
no input type="img"... would not be input type="image"?
– Sam
@lffg type in the first input I get the URL to save in my database. This input will not appear to the user. In the second input I wanted to show the image .
– AmandaRJ
@dvd already fixed. Sorry.
– AmandaRJ