kacole2 / express-node-mongo-skeleton

a simple CRUD + REST skeleton for Express + Node + Mongo
MIT License
174 stars 148 forks source link

select value in edit view #4

Open ajbraus opened 8 years ago

ajbraus commented 8 years ago

Hi there, how do you get a select HTML element to have the correct option selected in an edit form? If you use <select value="#{blob.kind || ''}"> it doesn't select an option whose value is equal to the blob.kind.

http://stackoverflow.com/questions/37633854/how-do-you-set-select-value-option-in-edit-new-tempalte-expressjs

kacole2 commented 8 years ago

@ajbraus I can't answer that since I haven't messed with this in quite some time. Hopefully you get the answer you're searching for on SO. Please close this when you get answer.

Thanks