Can I pass object of data in select option ?
I'm displaying name in select option & I'm using ID in value.
After some option is selected, I want to display the selected option. Since the value is ID, I can't display name.
How can I solve this?
This is my code:
{
Makes.hasData ?
(_.map(Makes.data.data, (make, index) => {
return (
<option key={index} value={make.id}> {make.make}</option>
);
}))
: ''
}
Thank You