How to dynamically populate the dropdown menu?

Populate the Css class dropdown menu

NormalHTMLPreview
 
 Resize
Load

Add new dropdown menu

NormalHTMLPreview
 
 Resize
Load