How we can display ajax response in dropdown filed of orm in jsp
How we can display ajax response in dropdown filed of orm in jsp
sunilithape
Posts: 2Questions: 1Answers: 0
$(document).ready(function() {
$.ajax({
type: "POST",
url: "/VehicleDataController",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$.each(data, function (i, val) {
console.log(val.name);
$("#vehicleID").text(val.vehicleIMEIID);
$("#vehicleRg").text(val.vehReg);
});
}
});
});
This discussion has been closed.
Answers