Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created August 10, 2010 17:45
Show Gist options
  • Select an option

  • Save apipkin/517667 to your computer and use it in GitHub Desktop.

Select an option

Save apipkin/517667 to your computer and use it in GitHub Desktop.
YUI.add('basefn', function(Y) {
Y.Basefn = {
genYear : function() {
var yrs = "",
i = 0;
Y.log('in');
for(i = 1850; i < 2012; i++) {
Y.log(i);
yrs += '<option value="' + i + '">' + i + '</option>';
}
return yrs;
}
};
})
Y.one('#srch-yr').set('innerHTML', Y.Basefn.genYear())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment