Changing the CSS through a switch case statement

Hi all,

I’ve created a responsive image holder as a grid editor, I’m wondering how to change the colour of a border of an element by having the user select a colour from a dropdown. This would be one of the properties of the grid editor when adding it into a piece of content.

I thought that I could do this by using a switch case statement but I’m not too sure how to implement this and how to link it up with the dropdown.

Does anybody have any suggestions?

Thanks,

David


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/96989-changing-the-css-through-a-switch-case-statement