Last active
August 29, 2015 14:07
-
-
Save ichim-david/6a4e74d2bcaff9ae863c to your computer and use it in GitHub Desktop.
not in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var values = [{one : 'value'}, {two: 'value'}; | |
| var field = "field"; | |
| var ct_setting = { ctype: ctype, | |
| settings: [ | |
| ] | |
| }; | |
| ct_setting.settings[field] = {}; | |
| jQuery.each(values, function(idx, option) { | |
| ct_setting.settings[field][option.name] = option.value; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment