I have a json id for servlet reference and there is a message in this json id which I need to print on the webpage.
It works with textarea tag and alert, but I need to display the message in style (decorative,animate)
How can I do it?
Here is the ajax code:
$.ajax({
url: "/hello3",
type:"GET",
data:"currentId=" +currentId ,
dataType:"json",
success: function(data,status){
$('#json').val(" The deleted row is "+data.currentId)
}
});
});
});
This is my HTML:
<div>
<textarea id="json" rows="10" cols="50" disabled></textarea>
</div>