Joginder Banger

Joginder Banger

  • 202
  • 8.7k
  • 1m

Get a value of with the help of jquery

Jan 14 2015 6:40 AM
place library
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

  $(window).load(function(){
     
            $.ajax({
                type: "GET",
                url: "http://www.customer-supports.com/WcfService2/Service1.svc/Getjson",
                dataType: "json",
                success: function (xml) {
                    var temp = xml;
                    $.each(temp.GetCountryDetailResult, function (key, val) {
                       alert('Key: ' + key + '  Val: ' + val);                


                    });
                 
                },
                error: function (xhr) {
                   
                }
            });
        });

Answers (2)