[
{
"id": 1,
"ptype_id": "P01",
"ptype_name": "By Cash"
},
{
"id": 2,
"ptype_id": "P02",
"ptype_name": "By Card"
},
{
"id": 3,
"ptype_id": "P03",
"ptype_name": "By IMPS [Paypal or Others]"
},
{
"id": 4,
"ptype_id": "P04",
"ptype_name": "Western Union Money Transfer"
}
]
so this is my thing --
I have a select list which is being bound with data from db. the data format you can see above which is being returned by my web api. and subsequently I am binding it to my list.
Now
upon select change, I want to get the id(value) as well as the selected text.... my code isn't working... I am only ge…