I’m trying to display image in a script. I get my data from action controller and try to add my data name in img src= ? So how can I display image with my data ?
Here is my script:
$(function () {
$.ajax({
type: “get”, url: “Home/Oku”, data: {}, dataType: “json”,
success: function (data) {img src=”” + data[0] “width=”150px” height=”150px”/> ????? How can i display
} });
You should do something like this:
}