Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 30, 2012 04:22 AM by TechFriend
Member
225 Points
116 Posts
Jun 29, 2012 11:39 AM|LINK
i have div like below...
<div id="output"></div>
i bind this like below.
var url = "cars.aspx?id=" + car.Id; $('#output').append('<p><a href="' + url + '">' + car.name + '</a></p>');
now how can i append image here(which store at folder and path send to json data like car.image).
Participant
955 Points
182 Posts
Jun 30, 2012 04:22 AM|LINK
you can do it in the similar way you have append the anchor tag (<a>)
$('#output').append('<img src="http://www.google.com/textinputassistant/tia.png" />');
$('#output').append('<img src="' + car.image + '" />');
india.999
Member
225 Points
116 Posts
how can i show image at div using jquery web service.
Jun 29, 2012 11:39 AM|LINK
i have div like below...
<div id="output"></div>
i bind this like below.
var url = "cars.aspx?id=" + car.Id;
$('#output').append('<p><a href="' + url + '">' + car.name + '</a></p>');
now how can i append image here(which store at folder and path send to json data like car.image).
TechFriend
Participant
955 Points
182 Posts
Re: how can i show image at div using jquery web service.
Jun 30, 2012 04:22 AM|LINK
you can do it in the similar way you have append the anchor tag (<a>)
$('#output').append('<img src="http://www.google.com/textinputassistant/tia.png" />');
$('#output').append('<img src="' + car.image + '" />');