Jquery Ajax

index.html

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $.ajax({url:"deneme.html",success:function(result){
            var a = result;
      $("#div1").html(a);
    }});
  });
});
</script>
</head>
<body>

<div id="div1"><h2>Ajax Uygulamasını Çalıştırmak için tıklayınız</h2></div>
<button>Tıkla</button>

</body>
</html>

deneme.html
Ajax ile Gelen veriler



Yorumlar

Popüler Yayınlar