function getbook() { $.ajax({ type: "POST", url: "/Home/getBooked", data: { "bookNumber": mobile}, success: function (succ) { // I need to add the items in succ to some text boxes as shown below $.each(succ, function (index, element) { $('#tb1').val(element); $('#tb2').val(element); }); }, error: function (err) { alert("An error is thrown"); } }); }
success: function (succ) { $('#tb1').val(succ[0]); $('#tb2').val(succ[1]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)