When adding in text with small whitespace appended to it for alignment purposes the whitespace is trimmed off (the whitespace is added in c# so by the time it gets to front end Javascript it cannot be edited – it would be nice to just use some CSS to do this but it is not an option). Here is what
Tag: dynamic
Javascript: how to dynamically create nested objects using object names given by an array
I hope someone can help me with this Javascript. I have an Object called “Settings” and I would like to write a function that adds new settings to that object. The new setting’s name and value are provided as strings. The string giving the setting’s name is then split by the underscores into an array. The new setting should get