Skip to content

Instantly share code, notes, and snippets.

@davglass
Created January 26, 2009 02:04
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 davglass/52662 to your computer and use it in GitHub Desktop.
Save davglass/52662 to your computer and use it in GitHub Desktop.
var calClick = function() {
//Calendar was clicked..
};
var oButton = new YAHOO.widget.Button({
type: "menu",
id: "calendarpicker",
label: "Choose A Date",
menu: oCalendarMenu,
container: "datefields"
});
oButton.addClass('calpicker');
oButton.on('click', calClick);
var oButton2 = new YAHOO.widget.Button({
type: "menu",
id: "calendarpicker2",
label: "Choose A Date",
menu: oCalendarMenu2,
container: "datefields2"
});
oButton2.addClass('calpicker');
oButton2.on('click', calClick);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment