Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Get value of attribute in select doctype field

Hello everybody;
I’ve a select doctype field “patient_sel”; I set its value from database callback result like;
var sel_optinos = [];
sel_optinos.push({label: patientName,
value: patientName,
mobile:mobile_o,
sex:sex,
age :age_o});

frm.set_df_property(‘patient_sel’, ‘options’, sel_optinos);

I know I can get the value of that select doctype field by:
frm.doc.patient_sel;
But;
How to get the value of an attribute of that select like age ,mobile value ??

Can anyone help me?