I am just a beginner with jquery and am trying to call simple request. Here's a jsfiddle:
I am using this code:
HTML:
<button>Click me</button>
and
jQuery:
$("button").click(function() {
$.ajax({
url: "http://jsfiddle.net/echo/html/",
success: function(result) {
alert("Data: " + result);
}
});
});
But it doesn't work. Reading documentation doesn't help me. Can anybody suggest solution?
Thank you very much
........