$.ajax({
url: '/cash/bill/PostingBillTypeCombo',
dataType: 'html',
data: {
name: "BillTypeId",
required: true,
currencyId: selectedCurrencyId
},
method: 'POST',
success: function (data) {
------
-----
}
},
});
how can i capture data inside function (data)
the above image is the data which is send to function (data).
i need to capture the Debit inside the function(data).
Should i stringfy and capture it or is there another way of doing it?
Should i capture it using option value or is there another way of doing it?
Im a beginner so help me out on this.This is for my school project
2
Answers
You can store the value to a variable then transfer using ajax. You need to stringify only if it’s an array or object.
In server side if you are using php you can get the value by using this method
Considering you are using it with jQuery, I have created a Sample for you.
As you are getting your as a string in data, you can create a dummy template and access the element with CSS selector.
Try with below code:
//OutPut:"1000"