I have a html content variable in js as
var htmlIs = '<p><img src="images/stories/fight_bpl.jpg" /></p>';
and I am appending it to the div using
$("#divId").append(htmlIs);
but here I just want to replace the src want to add the external image link here before append the content so how can I do this?
You can create a jQuery object:
http://jsfiddle.net/BdnYd/
For multiple images:
http://jsfiddle.net/TUFcX/