Hobo Cookbook

View Source



Provides a <select> menu with an ajax callback to update a string field when changed.


  • values: The values for the menu options. Required

  • Labels: A hash that can be used to customise the labels for the menu. Any value that does not have a corresponding key in this hash will have its label generated by value.titleize

  • titleize: Set to false to have the default labels be the same as the values. Default: true - the labels are generated by value.titleize

  • update: one or more DOM ID’s (comma separated string or an array) to be updated as part of the ajax call.

    NOTE: yes that’s DOM ID’s not part-names. A common source of confusion because by default the part name and DOM ID are the same.

Show Source


No Comments to display