Skip to content

Instantly share code, notes, and snippets.

@brobertsaz
Created September 15, 2012 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brobertsaz/3730070 to your computer and use it in GitHub Desktop.
Save brobertsaz/3730070 to your computer and use it in GitHub Desktop.
js_3
var share_across_options = #{@share_across_dates};
var share_down_options = #{@share_down_dates};
var optionsFromArray = function(array){
var options = '';
$(array).each(function(index, item){
options += '<option value="' + item[1] + '">' + item[0] + '</option>'
});
return options;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment