Saturday, 18 March 2017

How to generate a list of radio buttons/checkboxes with ejs from JSON object?

I have a json object that I am passing to ejs, and based on certain fields in that object I would like to generate checkboxes and radio buttons, without hardcoding them so they are changed based on the values inside the json object. The number of checkboxes and radio buttons in the lists should expand and contract based on the size of the properties of the json objects. How can I do this?



via daniel metlitski

No comments:

Post a Comment