When using jQuery, I implemented the following code snippet but it doesn't display anything. What could be causing this issue?
// $.ajax({
// URL:"https://dog.ceo/api/breeds/image/random",
// method:"GET",
// success:function(data){
// var myurl=data.message;
// $("#dog-image").attr("src",myurl);
// }
// });