I am looking at setting the option for my select dropdown which has been passed back from the DB.
"<td><select id=\"sel" + res.sku.replace(/[^a-z0-9\s]/gi, '').replace(/[_\s]/g, '-') + "\"><option>True</option><option>False</option></select></td>" +
I have it passing over the option true or false, how would i go about setting this on the option please?
Thanks in advance.
I agree with Sable that a radio button might be a better choice in this situation, but if you’re determined to use a drop down list, you can try something like this: