Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


How to get JSON key and value with ajax


How can I get the key and value from that json with ajax?

 

 type="text/javascript">
$(document).ready(function(){
$.ajax({
    type: 'POST',
    url: '--url--',
    dataType: 'text',
    success: function(jsonData) {
        $.each(response,function(index,value)
        {
            $("[name="+index+"]").val(value);
        });
    }
});
});

asked Jun 3, 2015 in JAVASCRIPT by rajesh
0 votes
71 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...