I use to update Label values inside the AJAX success function like below, But I need to know how I'm going to apply this method to change/update "src" of an <img id="myimage" src=""/>
$.ajax({
url: 'clmcontrol_livematchupdate',
type: 'post',
dataType: 'json',
success: function (data) {
$('#mstatus').html(data.matchstatus);
// $('#myimage').... ?
},
complete: function () {
// Schedule the next request when the current one has been completed
setTimeout(ajaxInterval, 4000);
}
});