JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
type: "GET",
url: 'http://localhost:59879/Handler.ashxt,
success: function (msg, result, status, xhr) {
var obj = jQuery.parseJSON(msg);
var b = obj.length;
for (var i = 0; i <= b; i++) {
var crnt = obj[i];
//crn = obj[i].alan;
crnn = obj[i].alan_turu;
console.log(crnn);
}
//if (crnn == "System.String") {
// $('.form').find('input:text').each(function () {
// $("<input type='text' />").attr({ name: this.name, value: this.value }).insertBefore(this);
// }).remove();
//}
//else if (crnn == "System.Double") {
// $('.form').find('input:text').each(function () {
// $("<input type='number' />").attr({ name: this.name, value: this.value }).insertBefore(this);
// }).remove();
//}
//else if (crnn == "System.DateTime") {
// $('.form').find('input:text').each(function () {
// $("<input type='date' />").attr({ name: this.name, value: this.value }).insertBefore(this);
// }).remove();
//}
}
});