Quick fix for server side form using EJS needed.

Job ID: 31664520

Budget: $10 – $30 USD

I have a Node/Express/MySQL app where I'm using EJS for the server side rendering. I have dropdowns in the input form (new entry) with values pulled from MySQL tables.

I also have a form that renders existing record details and i want these dropdowns to be available so the user can select a new value to edit the existing value, if that makes sense. I'm a bit of an EJS hack so I can't figure out how to combine the dropdown code with the code that shows the existing value from the record being viewed in the 'edit' form.

I can share the code I have if you have a quick fix. I'm assuming it's a quick fix.

See uploaded png images: first is the input form; second is the 'edit' or view form.
Related categories: JavaScript MySQL Node.js Express JS