I have a jquery function which gets data from a json php mysql. And the results are appearing in textboxes
function renderDetails(wine) {
$('#Id').val(wine.id);
$('#question').val(wine.question);
$('#answer').val(wine.answer);
$('#link').val(wine.link).html();
}
The textboxes in HTML are like this
<label>link:</label>
<input type="text" id="link" name="link"/>
Instead of a text box I would like to bring the link to a div!
<p id="link">This is where the link should appear.</p>
How would you write the jquery in order to feed the DIV ???